要打开一个是最大化的窗口没有太好的办法,只好这样模拟一下
<html>
<head>
<script language="JavaScript">
<!--
function open1(url){
window.open(url, "", "scrollbars=1,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
}function open2(url){
window.open(url, "", "");
}function open3(url){
window.open(url, "", "fullscreen=1");
}
//-->
</script>
</head><body>
<input type="button" value="open1" onclick="javascript:open1('http://www.csdn.net');"><br>
<input type="button" value="open2" onclick="javascript:open2('http://www.csdn.net');"><br>
<input type="button" value="open3" onclick="javascript:open3('http://www.csdn.net');"><br>
</body>
</html>
<html>
<head>
<script language="JavaScript">
<!--
function open1(url){
window.open(url, "", "scrollbars=1,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
}function open2(url){
window.open(url, "", "");
}function open3(url){
window.open(url, "", "fullscreen=1");
}
//-->
</script>
</head><body>
<input type="button" value="open1" onclick="javascript:open1('http://www.csdn.net');"><br>
<input type="button" value="open2" onclick="javascript:open2('http://www.csdn.net');"><br>
<input type="button" value="open3" onclick="javascript:open3('http://www.csdn.net');"><br>
</body>
</html>
<script>
window.moveTo(-4,-4)
window.resizeTo(screen.width+8,screen.height-21)
</script>
function MaxWindow()
{
// 风舞影天(Snwcwt)
self.moveTo(0,0);
self.resizeTo(window.screen.availWidth,window.screen.availHeight);
var TempWidth = (window.screen.availWidth - document.body.offsetWidth)/2;
self.moveTo(-TempWidth,-TempWidth);
self.resizeTo(window.screen.availWidth+TempWidth*2,window.screen.availHeight+TempWidth*2);
}与点标题栏最大化按纽的差别就在于它最大化后可以拖动(如果页面在打开时并不是最大化)