Jquery maximizes the window, no matter what the situation _ jquery

Source: Internet
Author: User
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













Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.