日期:2014-05-16 浏览次数:20630 次
<html> <head><title>wlw.com</title> <script type="text/javascript"> function XXXXXX(){ document.inside.window.document.body.innerHTML=document.getElementById("strInput").value; document.inside.window.onresize=function(){parent.window.document.getElementById("strInput").value="return value"}; document.inside.window.resizeTo(1100,500); } </script> </head> <body> <form action = "#" onsubmit = "XXXXXX();return false;" style = "display: inline-block; white-space: nowrap;" id = "searchForm"> <table cellspacing = "0" cellpadding = "0"> <tr> <td> <input id = "strInput" type = "text" style = "width: 400px; height: 30px;"> </td> <td> <button type = "submit" id = "searchButton" style = "width:90px; height: 30px;"></button> </td> </tr> </table> </form> <hr> <iframe name="inside" src="photo3.aspx" cols="30%,*" height=600 width=1100 align=right scrolling=no frameborder=yes> </iframe> </body> </html>
------解决方案--------------------
main.html
<html> <head> <script type="text/javascript"> function getMsg(){ var el = document.getElementById("msg"); var txt = document.frames['inside'].document.getElementById('txts'); txt.value = el.value; } </script> </head> <body> <input type="text" id="msg" /> <input type="button" onclick="getMsg()" value="button" /><br/> <iframe name="inside" id="inside" src="1.html" cols="30%,*" height=600 width=1100 align=right scrolling=no frameborder=yes> </iframe> </body> </html>
------解决方案--------------------
<html> <head><title>wlw.com</title></head> <script type="text/javascript"> var theFormSubmit=function(){ searchForm.action = "index-clear.html?s=&quo