有一个父窗口index.html
一个iframe src=" 1.html " name="n_ifrm" 里面有一个链接<a target="n_ifrm" src="2.html"></a>
一个iframe src=" 1.html " name="n_ifrm" 里面有一个链接<a target="n_ifrm" src="2.html"></a>
当跳转到2.html的时候,使整个父窗口靠在顶部
在你的1.html页面和2.html页面<head>标签里加上以下函数 <script type="text/javascript"> window.οnlοad=function(){window.parent.scrollTo(0,0);} </script>