2011年5月5日 星期四

取得IFRAME頁面表單的值

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