2.3.3 initPopStateEvent

Initializes the properties of a PopStateEvent object.

As of Microsoft Edge, the createEvent() / initEvent() constructor pattern for synthetic events has been deprecated in favor of the DOM4 event constructor pattern.

Available only in IE10, IE11, and EdgeHTML Mode (All Versions).

The initPopStateEvent method extends the PopStateEvent interface.

Parameters

DOMString typeArg The type of event being created

boolean canBubbleArg Indicates whether the event can bubble

boolean cancelableArg Indicates whether the default action of the event can be prevented

any stateArg The object to be applied to the state property

Return Value

None

Show: