Getting form values in IFRAME page
Here is the IFRAME tag.
<iframe name="framename"></iframe>
Here is the FORM tag.
<form name="formsubmit">
<input type="text" name="txtbot">
</form>
Here is the JavaScript call.
window.alert(parent.framename.formsubmit.txtbot.value);
資料來源:http://www.codeguru.com/forum/showthread.php?t=362215
Here is the IFRAME tag.
<iframe name="framename"></iframe>
Here is the FORM tag.
<form name="formsubmit">
<input type="text" name="txtbot">
</form>
Here is the JavaScript call.
window.alert(parent.framename.formsubmit.txtbot.value);
資料來源:http://www.codeguru.com/forum/showthread.php?t=362215