Javascript Reference
Categories: event

javascript event initUIEvent( )

@April 17, 2008, 6:45 a.m.
initUIEvent( ) Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2

initUIEvent("eventType", bubblesFlag, cancelableFlag, view, detailVal)

 

Initializes a newly created event object with a complete set of property values associated with any UI event. All parameters must be present, and must be set to default values (such as false for Boolean key flags or zero for integer values) if the values are not significant for the event type.

 
Parameters
 
  • String identifier for the event's type, such as DOMFocusIn, DOMFocusOut, DOMActivate.
  • Boolean value (true | false) determining whether the event's default propagation behavior is to bubble.
  • Boolean value (true | false) determining whether the event's default action may be prevented via the preventDefault( ) method.
  • Reference to the window or frame object in which the dynamically generated event is supposed to have occurred.
  • Integer code for detail data associated with the event.
 
Returned Value

None.


Powered by Linode.