开新窗口按钮

第一步:复制下面的代码到你的 html 文件的 <head> 和 </head> 之间;

<script>
<!--
function winopen(){
var targeturl="test.htm"
newwin=window.open("","","scrollbars")
if (document.all){
newwin.moveTo(0,0)
newwin.resizeTo(screen.width,screen.height)
}
newwin.location=targeturl
}
//-->
</script>

第二步:复制下面的代码到 html 文件的 <body> 和 </body> 之间任何需要的地方;
<form>
<input type="button" onClick="winopen()" value="按我开新窗">
</form>
使用说明改变链接文件test.htm为你自己的文件名。开新窗的大小可以设定;