The method used here is the private feature of IE and can only be effective in IE. Mainly and method.
The effect is similar to clicking the maximum button, with a little difference. After clicking the Maximization button, the content of the browser fills the monitor, and the border of the browser window is squeezed out of the monitor. The maximum effect of this js is that the browser border is displayed in the display.
The js code is as follows:
function resizeWindow(){
if () {//Judge whether the browser supports screen var myw = ; //Define a myw to accept the width of the current full screen var myh = ; //Define a myw to accept the height of the current full screen (0, 0); //Place the window on the upper left foot (myw, myh); //Jump the length and width of the current form to myw and myh } }
The html body uses the onload event to call the function:
<body onload="resizeWindow();">
The effect is similar to clicking the maximum button, with a little difference. After clicking the Maximization button, the content of the browser fills the monitor, and the border of the browser window is squeezed out of the monitor. The maximum effect of this js is that the browser border is displayed in the display.
The js code is as follows:
function resizeWindow(){
if () {//Judge whether the browser supports screen var myw = ; //Define a myw to accept the width of the current full screen var myh = ; //Define a myw to accept the height of the current full screen (0, 0); //Place the window on the upper left foot (myw, myh); //Jump the length and width of the current form to myw and myh } }
The html body uses the onload event to call the function:
<body onload="resizeWindow();">