1. Code examples
Copy the code code as follows:
window.open(url,'new window','width='+(window.screen.availWidth-10)+',height='+(window.screen.availHeight-30)+',top=0,left= 0,resizable=yes,status=yes,menubar=no,scrollbars=yes');
2. Command analysis
window.open
Command to pop up a new window
page.html
Pop-up window file name
newwindow
The name of the pop-up window (not the file name), optional, can be replaced by empty ''
height=100
window height
width=400
window width
top=0
The pixel value of the window above the screen
left=0
The pixel value of the window from the left side of the screen
toolbar=no
Whether to display the toolbar, yes means display
menubar, scrollbars
Represents menu bar and scroll bar
resizable=no
Whether to allow changing the window size, yes is allowed
location=no
Whether to display the address bar, yes is allowed
status=no
Whether to display the information in the status bar (usually the file has been opened), yes is allowed