First of all, tell us about screen objects:
Screen object
Screen object contains information about the client display screen.
- availHeight
- Return to the display screen height (in addition to Windows taskbar) .
- availWidth
- Return the display screen width (in addition to Windows taskbar) .
If you need to include the taskbar need to use screen.height and screen.width slightly!
availWidth attribute declares the browser displays the available width of the screen
Example: screen.availHeight
XP system subtracts the windows taskbar Default 30px height so if it is the height of 800 will become 770;.
Taskbar win7 default is 40px so is the actual screen height minus 40;.
In addition taskbar can also be so availWidth will be removed from the task bar at any vertical and horizontal position of the screen
Here is the code to open a maximized window:
<a href="javascript:void window.open('https://www.sina.com.cn/ ','XX',' left=0,top=0,width='+ (screen.availWidth - 10) +',height='+ (screen.availHeight-50) +',scrollbars,resizable=yes,toolbar=no')">Open</a>
In addition, the investigation started online:
Invariably say the answer is full-screen, so helpless.
Reproduced in: https: //my.oschina.net/u/2552902/blog/543933