Home  >  Article  >  Web Front-end  >  Summary of how to use window.open_Basic knowledge

Summary of how to use window.open_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 17:31:511183browse
window.open(pageURL,name,parameters)
Where:
pageURL is the sub-window path
name is the sub-window handle
parameters are window parameters (each parameter is separated by commas)
Example:
Copy code The code is as follows:

<SCRIPT> <br><!-- <BR>window.open ('page.html','newwindow','height=100,width=400, top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no') <BR>//Write in one line<BR>--> <br> </SCRIPT>

You can also use 1/0 for yes/no; pixel value is a specific value in pixels.
Parameter | Value range | Description
alwaysLowered | yes/no | The specified window is hidden behind all windows
alwaysRaised | yes/no | The specified window is suspended above all windows
depended | yes/ no | Whether to close the parent window at the same time
directories | yes/no | whether the directory bar of Nav2 and 3 is visible
height | pixel value | window height
hotkeys | yes/no | in a window without menu bar CMD safe exit hotkey
innerHeight | pixel value | Pixel height of the document in the window
innerWidth | pixel value | Pixel width of the document in the window
location | yes/no | Whether the location bar is visible
menubar | yes/no | Whether the menu bar is visible
outerHeight | pixel value | Set the pixel height of the window (including decorative borders)
outerWidth | pixel value | Set the pixel width of the window (including decorative borders)
resizable | yes/no | Whether the window size is resizable
screenX | pixel value | The pixel length of the window from the left edge of the screen
screenY | pixel value | The pixel length of the window from the upper edge of the screen
scrollbars | yes /no | Whether the window can have a scroll bar
titlebar | yes/no | Whether the window title bar is visible
toolbar | yes/no | Whether the window toolbar is visible
width | pixel value | The pixel width of the window
z-look | yes/no | Whether the window floats on top of other windows after it is activated
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