您的位置:首页 > Web前端 > JavaScript

javascript 前进、后退、刷新

2012-04-13 13:20 288 查看
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版
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息