272
edits
m (→Profile) |
|||
| Line 75: | Line 75: | ||
Window events log various actions pertaining to DOM Windows, which provide a context for load events. | Window events log various actions pertaining to DOM Windows, which provide a context for load events. | ||
Element | ; Element <tt><window></tt> | ||
: ''Attributes:'' | |||
Attributes: | :; <tt>action = [string]</tt> | ||
:: Indicates the action that happened for this window. Possible values are: | |||
<tt>action = [string]</tt> | ::* <tt>create</tt>: a new toplevel or child DOM Window was created | ||
::* <tt>open</tt>: a toplevel DOM Window was opened | |||
Indicates the action that happened for this window. Possible values are: | ::* <tt>close</tt>: a toplevel DOM Window was closed | ||
::* <tt>destroy</tt>: a toplevel or child DOM Window was destroyed | |||
:; <tt>windowid = [integer]</tt> | |||
:: The id of the affected window. Ids are assigned starting from 0 and are never reused during that session. The window id is not unique across sessions. | |||
:; <tt>parent = [integer]</tt> (optional) | |||
:: For create events, the id of the parent of the newly created window. Toplevel windows do not have a parent, so this attribute will not be set. | |||
:; <tt>chrome = [boolean]</tt> (optional) | |||
:: For create events, whether the new window has chrome privileges. Defaults to false. | |||
<tt>windowid = [integer | :; <tt>opener = [integer window id]</tt> (optional) | ||
:: For open events, the id of the opener DOM window. Windows opened from native code may not have an opener, and this attribute will not be set. | |||
The id of the affected window. Ids are assigned starting from 0 and are never reused during that session. The window id is not unique across sessions. | |||
<tt>parent = [integer | |||
For create events, the id of the parent of the newly created window. Toplevel windows do not have a parent, so this attribute will not be set. | |||
<tt>chrome = [boolean]</tt> (optional) | |||
For create events, whether the new window has chrome privileges. Defaults to false. | |||
<tt>opener = [integer window id]</tt> (optional) | |||
For open events, the id of the opener DOM window. Windows opened from native code may not have an opener, and this attribute will not be set. | |||
===Load Event=== | ===Load Event=== | ||
edits