This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

initTransitionEvent

Summary

Initializes a transition event created using the deprecated Document.createEvent(“TransitionEvent”) method.

Method of dom/TransitionEventdom/TransitionEvent

Syntax

var object = object.initTransitionEvent(/* see parameter list */);

Parameters

typeArg

Data-type
any

Specifies the event type.

canBubbleArg

Data-type
any

Specifies whether or not the event can bubble.

cancelableArg

Data-type
any

Specifies whether or not the event’s default action can be prevented. Since a TransitionEvent is purely for notification, there is no default action.

propertyNameArg

Data-type
any

Specifies the name of the property associated with the Event.

elapsedTimeArg

Data-type
any

Specifies the amount of time, in seconds, the transition has been running at the time of initialization.

Return Value

Returns 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

Remarks

This 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.

Syntax

var retval = transitionEvent.initTransitionEvent(typeArg, canBubbleArg, cancelableArg, propertyNameArg, elapsedTimeArg);

Attributions