<iframe src="test" id="myiframe">myiframe.document.all.文本框名.value

解决方案 »

  1.   

    iframeid.document.all("elementid").value="newvalue";
      

  2.   

    example.htm
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head>
    <body>
    <iframe id="tt" width="100%" height="100" src="test.htm"></iframe><script language="JavaScript"><!--
    alert(tt.document.all.ttt.value)
    //--></script>
    </body>
    </html>test.htm
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <table id=main width="200">
    <input name="ttt" id="ttt" value="22" type="text">
    </table> 
    </body> 
    </html> 尝试过上面说的方法,出错
      

  3.   

    iframe 要判断下是否加载完毕:====>  onreadyState
    <iframe name="tt" id="tt" width="100%" height="100" src="test.htm" onreadyState="test()()"></iframe>