2009年3月3日 星期二

JavaScript window.open

window.open([URL], [window name], [property], [Replace]);
property:
Property Default Description
toolbar no show the toolbar
menubar no show the menu bar
resizable no specifies whether the window can be resized.
scrollbars no show the scrollbars
status no show the statusbar
directories no show the directories bar(links bar)
location no show the location bar
width auto specifies width of the new window in pixels
height auto height of the window in pixels
top auto specifies window position
left auto specifies window position

NOTE: Another fullscreen property is only supported by Internet Exploer.

Reference:
Open popup window with open.window method
window.open()的所有參數列表
IE的showModalDialog與FireFox的window.open 父子窗口傳值示例

沒有留言:

Powered By Blogger