1. Code example
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
The file name of the pop-up window
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 from the top of the screen
left=0
The pixel value of the window from the left side of the screen Prime value
toolbar=no
Whether to display the toolbar, yes means displaying
menubar, scrollbars
represents the 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 is already open), yes means allow
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn