Javascript - window.open() Syntax Generator
Javascript - window.open() 語法產生器
Syntax: window.open('URL','name','specs','replace');
語法: window.open('URL','視窗名稱','參數設定','記錄設定');
Parameter
參數
select
勾選
Value
設定值
Description
說明
URL - Specifies the URL of the page to open. If no URL is specified, a new window with about:blank is opened.
URL
name - Specifies the target attribute or the name of the window.
視窗名稱
name
_blank(default) - URL is loaded into a new window.
_parent - URL is loaded into the parent frame.
_self - URL replaces the current page.
_top - URL replaces any framesets that may be loaded.
The name of the window.
specs - Separated by comma.
參數設定 - 以逗號分隔。
channelmode
yes
no (default)
Display the window in theater mode?
directories
yes (default)
no
Display directory toolbar?
是否顯示目錄列
fullscreen
yes
no (default)
Display the browser in full-screen mode? A window in full-screen mode must also be in theater mode.
全螢幕顯示?
height
The height of the window. Min. value is 100.
新視窗高度,最小值是 100。
left
The left position of the window
新視窗的 X 座標。
location
yes (default)
no
Display the address field?
顯示位址列?
menubar
yes (default)
no
Display the menu bar?
顯示功能表?
resizable
yes (default)
no
IS the window resizable?
是否允許調整視窗大小?
scrollbars
yes (default)
no
Display scroll bars?
顯示視窗捲軸?
status
yes (default)
no
Display status bar?
顯示狀態列?
titlebar
yes (default)
no
Display the title bar. Ignored unless the calling application is an HTML Application or a trusted dialog box.
顯示標題列?
toolbar
yes (default)
no
Display the browser toolbar?
是否顯示視窗工具列?
top
The top position of the window.
新視窗的 Y 座標。
width
The width of the window. Min. value is 100.
新視窗寬度,最小值是 100。
replace - Specifies whether the URL creates a new entry or replaces the current entry in the history list.
記錄設定 - 新視窗是否繼承原視窗之瀏覽記錄。
replace
true (default)
false
>>
參考資料:
http://www.w3schools.com/
<<<HOME