属性都在这了:window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
sFeatures:
channelmode = { yes | no | 1 | 0 }
directories = { yes | no | 1 | 0 }
fullscreen = { yes | no | 1 | 0 }
height = number
left = number
location = { yes | no | 1 | 0 }
menubar = { yes | no | 1 | 0 }
resizable = { yes | no | 1 | 0 }
scrollbars = { yes | no | 1 | 0 }
status = { yes | no | 1 | 0 }
titlebar = { yes | no | 1 | 0 }
toolbar = { yes | no | 1 | 0 }
top = number
width = number
sFeatures:
channelmode = { yes | no | 1 | 0 }
directories = { yes | no | 1 | 0 }
fullscreen = { yes | no | 1 | 0 }
height = number
left = number
location = { yes | no | 1 | 0 }
menubar = { yes | no | 1 | 0 }
resizable = { yes | no | 1 | 0 }
scrollbars = { yes | no | 1 | 0 }
status = { yes | no | 1 | 0 }
titlebar = { yes | no | 1 | 0 }
toolbar = { yes | no | 1 | 0 }
top = number
width = number
window.width=screen.width
window.height=screen.width
因此只要知道了屏幕的分辨率即可,
<SCRIPT LANGUAGE="Javascript"><!--
if (self.screen) { // for NN4 and IE4
width = screen.width
height = screen.height
// Testing this first prevents firing the slow Java of NN4
}
else if (self.java) { // for NN3 with enabled Java
var jkit = java.awt.Toolkit.getDefaultToolkit();
var scrsize = jkit.getScreenSize();
width = scrsize.width;
height = scrsize.height;
}
else{
width = height = '?' // N2, E3, N3 w/Java off, probably Opera and WebTV}
document.write("Your Screen Resolution is:");
document.write(width +"×"+ height)
//or whatever based on the above results//--></SCRIPT>
要用window.open打开的有这个必要吗??
var d="resizable=1,width=" +window.screen.Width + ",height="+screen.Height
var a = window.open("","",d)
a.moveTo(-4,-4)
</script>
newWin.resizeTo(screen.width, screen.height)