a.html
HTML code
<html> <head> </head> <script language="javascript"> function test(){ alert(document.getElementById("f1").contentWindow.document.getElementById("text1").value); } </script> <body> <h1>a.html</h1> <input type="button" value="test" onclick="test()"> <br> <iframe id="f1" src="b.html"></iframe> </body> </html>


b.html
HTML code
<html> <head> </head> <body> <h1>b.html</h1> <input type="hidden" id="text1" value="abcdefg"/> </body> </html>

相关文章:

  • 2021-06-25
  • 2021-09-11
  • 2021-09-24
  • 2022-12-23
  • 2021-09-16
  • 2021-11-03
  • 2021-08-07
  • 2021-08-11
猜你喜欢
  • 2021-06-08
  • 2021-09-29
  • 2022-12-23
  • 2021-12-27
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案