First,window.open () Support environment:
javascript1.0+/jscript1.0+/nav2+/ie3+/opera3+
Second, the basic grammar:
window.open (Pageurl,name,parameters)
which
Pageurl as child window path
Name is a child window handle
Parameters is the window parameter ( each parameter is separated by commas )
Three, example:
<SCRIPT>
<!--
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 ')
Write a line
-
</SCRIPT>
after the script is run,the page.html will open in the new form NewWindow, the width is 0, theheight is the top of the screen, and the screen is 0 pixels away . pixel, no toolbar, no menu bar, no scroll bar, no resizing, no address bar, no status bar. Please compare.
In the above example, there are a few parameters that are commonly used, and there are many other parameters, see four. Four, the parameters
where yes/no can also be used 1/0;pixelvalue is a specific value, unit pixels.
Parameters | range of Values | Description
alwayslowered|yes/no| specifies that the window is hidden after all Windows
alwaysraised|yes/no| specifies that the window hovers above all windows
depended|yes/no| whether to close at the same time as the parent window
directories|yes/no| Nav2 and 3 's catalog columns are visible
height|pixelvalue| Window Height
hotkeys|yes/no| set safe exit Hotkey in Window without menu bar
innerheight|pixelvalue| The pixel height of the document in the window
innerwidth|pixelvalue| the 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|pixelvalue| Settings Window ( including decorative border ) the pixel height
outerwidth|pixelvalue| Settings Window ( including decorative border ) The pixel width
resizable|yes/no| whether the window size can be adjusted
screenx|pixelvalue| the pixel length of the window from the left edge of the screen
screeny|pixelvalue| the pixel length of the window from the top 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 window toolbars are visible
width|pixelvalue| the pixel width of the window
z-look|yes/no| whether the window is activated to float on top of other Windows