<form onsubmit="return controlParentForm();" id="parentForm">
...
</form>
JS:
var controlSubmitParentForm = 0;
function controlParentForm(){
var ret = false;
if (controlSubmitParentForm==0){
controlSubmitParentForm = 1;
document.frames.IFRAME_Items.document.forms[0].submit();
setTimeout(controlParentForm, 200);
}
else if (controlSubmitParentForm==1){
if (document.frames.IFRAME_Items.document.readyState=="complete"){
controlSubmitParentForm = 2;
document.getElementById("parentForm").submit();
}
setTimeout(controlParentForm, 200);
}
else if (controlSubmitParentForm==2){
// controls for "parentForm"
ret = true;
controlSubmitParentForm = 0;
}
return ret;
}
如果你的''
@adardesign然而,這顯然不是這樣,因爲他能夠從父母 – Graza 2010-01-04 23:22:10