javascript 前进、后退、刷新

Main.html页面

<frameset rows="127,*,11" frameborder="no" border="0" framespacing="0" >
  <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
  <frame src="center.html" name="mainFrame" id="mainFrame" />
  <frame src="down.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>


top.html页面 (IE6,7,8和Firefox测试通过)

   <div align="center"><a href="#" onclick= "window.parent.frames['mainFrame'].history.back()">后退</a></div>
   <div align="center"><a href="#" onclick= "window.parent.frames['mainFrame'].history.forward()">前进</a></div>
   <div align="center"><a href="#" onclick= "window.parent.frames['mainFrame'].location.reload()">刷新</a></div>




 

 

推荐博客:RyanDoc数据字典 For SqlServer版            RyanCoder代码生成器 For SqlServer版

你可能感兴趣的:(JavaScript)