DEM003.html

DEM003_bar.html

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script>  //补充完成此函数,用于刷新Menu窗体的页面  function flushMenuFrame(){      //top表示顶级窗口 的 window对象   window.top.menu.location.href="DEMO03_menu.html";  }  

 //补充完成此函数,将barText文本框的值写入到Main窗口的mainText中去。  function writeValueToMainFrame(){      //parent表示 但前窗口的 上级窗口的 window对象        window.parent.mainFrame.document.getElementById("mainText").value=document.getElementById("barText").value;    } </script>

</head>

<body> <center>BAR页面</center> <button onclick="flushMenuFrame();">刷新框架Menu窗口的页面</button> Bar页面的文本框:<input type="text" >向Main窗口写值</button> </body> </html>

DEMO003_main.html

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> </head>

<body> <center>Main窗体</center> <br><br> Main窗体中的文本框 <input type="text" > </body> </html>

 

相关文章:

  • 2021-04-11
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-08-11
  • 2021-09-03
  • 2021-05-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2021-12-21
  • 2021-08-10
  • 2021-12-16
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案