javascript手冊-u-z[6]
[入库:2005年8月18日] [更新:2007年3月25日]
pabs="http://www.nease.net/~jim/ref_m-q.htm#name_property">name reflects the windowname argument
parent is a synonym for the windowname argument and refers to a window containing a frameset
self is a synonym for the windowname argument and refers to the current window
status specifies a priority or transient message in the window's status bar
top is a synonym for the windowname argument and refers to the top-most navigator window
window is a synonym for the windowname argument and refers to the current window
the following objects are also properties of the window object:
document
frame
location
methods
alert
close
confirm
open
prompt
settimeout
cleartimeout
event handlers
onload
onunload
例子
in the following example, the document in the top window opens a second window, window2, and defines pushbuttons that open a message window, write to the message window, close the message window, and close window2. the onload and onunload event handlers of the document loaded into window2 display alerts when the window opens and closes.
win1.htm, which defines the frames for the first window, contains the following code:
window object example: window 1
本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)