initFocusEvent
Summary
Initializes a new FocusEvent that the createEvent method created.
Method of dom/FocusEventdom/FocusEvent
Syntax
event.initFocusEvent(eventType, canBubble, cancelable, view, detail, relatedTarget);
Parameters
eventType
- Data-type
- String
The name of the event. Sets the value for the type property.
canBubble
- Data-type
- Boolean
Whether the event propagates upward. Sets the value for the bubbles property.
cancelable
- Data-type
- Boolean
Whether the event is cancelable and so preventDefault can be called. Sets the value for the cancelable property.
view
- Data-type
- Object
The window on which this event is occurring. Sets the value for the view property.
detail
- Data-type
- Number
Specifies additional information. This value is returned in the detail property of the event.
relatedTarget
- Data-type
- DOM Node
A secondary element that is involved in the event. This value is returned in the relatedTarget property of the event.
Return Value
No return value
Related specifications
- DOM Level 3 Events
- Working Draft
See also
Related pages
- FocusEventFocusEvent
- initUIEventinitUIEvent
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]