What should I do to maximize the pop-up window regardless of the browser settings? The following describes how to change the browser window size from the default size to our own settings. When a new window is opened, some users want to maximize the display and do not want to perform any further operations. If you do not make explicit settings in the code, this is generally a browser's own setup problem. But what should users do if they want to maximize the pop-up window regardless of the browser settings? In fact, it is easy to do. We only need to put a few pieces of code to change the browser window size from the default size to our own settings.
The Code is as follows:
$ (Function (){
If (window. screen ){
Var myw = screen. availWidth;
Var myh = screen. availHeight;
Window. moveTo (0, 0 );
Window. resizeTo (myw, myh );
}
});
With jquery operations, you can maximize the browser window.
The above method is not actually the maximization, but the window is adjusted to the maximum. The maximization button in the upper right corner is still a single box, and I have read a lot of information, we found that there is a way to achieve full maximization:
The Code is as follows:
Hello