Initializes a transition event created using the deprecated Document.createEvent(“TransitionEvent”) method.
Method of dom/TransitionEventdom/TransitionEvent
Syntaxvar object = object.initTransitionEvent();
Parameters typeArg
Specifies the event type.
canBubbleArgSpecifies whether or not the event can bubble.
cancelableArgSpecifies whether or not the event’s default action can be prevented. Since a TransitionEvent is purely for notification, there is no default action.
propertyNameArgSpecifies the name of the property associated with the Event.
elapsedTimeArgSpecifies the amount of time, in seconds, the transition has been running at the time of initialization.
Return ValueReturns an object of type DOM NodeDOM Node
Type: HRESULT
This method can return one of these values.
S_OK
Usage Used to initialize the value of a TransitionEvent.
Note: this method has been dropped during the standard process. It has been deprecated and is in the progress of been removed from most implementation. Do not use it anymore, use the standard constructor, TransitionEvent(), to create a synthetic TransitionEvent
Notes RemarksThis method is used to initialize the value of a TransitionEvent. This method may only be called before the TransitionEvent has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.
Syntaxvar retval = transitionEvent.initTransitionEvent(typeArg, canBubbleArg, cancelableArg, propertyNameArg, elapsedTimeArg);
AttributionsMozilla Developer Network : [TransitionEvent.initTransitionEvent Article]
Microsoft Developer Network: [initTransitionEvent Method Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4