javascript 前進、後退、重新整理
阿新 • • 發佈:2019-01-04
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>