AmitDiwan has Published 11365 Articles

HTML DOM Event type Property

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:10:14

75 Views

The HTML DOM Event type property returns a string corresponding to the event’s type such as click, keypress, load, or touchend.Following is the syntax −Returning number of seconds a transition has run −event.typeLet us see an example of Event type property −Example Live Demo HTML DOM Event type ... Read More

HTML DOM TransitionEvent Object

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:05:46

36 Views

The HTML DOM TransitionEvent Object represents an event which incurs on a transition.Here, “TransitionEvent” can have the following properties and methods −Property/MethodDescriptionpropertyNameItreturns returns astring corresponding to a CSS property used for transition when atransition event is triggeredelapsedTimeItreturns a numbercorresponding to how many seconds a transition had run when atransition event ... Read More

HTML DOM TransitionEvent propertyName Property

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:00:35

37 Views

The HTML DOM TransitionEvent propertyName property returns a string corresponding to a CSS property used for transition when a transition event is triggered.Following is the syntax −Returning CSS property that transition has used −transitionEvent.propertyNameLet us see an example of TransitionEvent propertyName property −Example Live Demo TransitionEvent propertyName   ... Read More

HTML DOM TransitionEvent elapsedTime Property

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 05:57:29

23 Views

The HTML DOM TransitionEvent elapsedTime property returns a number corresponding to how many seconds a transition had run when a transition event is triggered.Following is the syntax −Returning number of seconds a transition has run −transitionEvent.elapsedTimeLet us see an example of TransitionEvent elapsedTime property −Example Live Demo TransitionEvent elapsedTime ... Read More

HTML DOM Track kind Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 11:01:10

64 Views

The HTML DOM Track kind property sets/returns the value of kind attribute of track element to specify the type of text track.Following is the syntax −Returning string valuetrackObject.kindSetting kind to stringValuetrackObject.kind = stringValueHere, “stringValue” can be the following −stringValueDetailscaptionsThe captions are translationof dialogue and sound effects (preferable for deaf users)chaptersIt ... Read More

HTML DOM Track default Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 10:56:18

65 Views

The HTML DOM Track default property sets/returns a boolean value corresponding to whether the track is to enabled until the user’s preference contradicts it.NOTE: Only one track should be default per media (audio/video) element.Following is the syntax −Returning boolean value - true/falsetrackObject.defaultSetting default to booleanValuetrackObject.default = booleanValueHere, “booleanValue” can be the ... Read More

HTML DOM TouchEvent Object

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 10:38:57

104 Views

The HTML DOM TouchEvent Object represents an event which incurs on interaction with the HTML document elements using touch devices.Here, “TouchEvent” can have the following properties and methods −Property/MethodDescriptionaltKeyItreturns a Booleanvalue corresponding to the state if alt key was pressed when atouch event was firedchangedTouchesItreturns aTouchList object corresponding to a ... Read More

HTML DOM TouchEvent targetTouches Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 10:21:53

119 Views

The HTML DOM TouchEvent targetTouches property returns a TouchList object corresponding to a list of all contact points triggered on a touch surface.NOTE: If a touch is triggered on the specified node or any of its child nodes then the following touches will only count if they are also triggered ... Read More

HTML DOM TouchEvent shiftKey Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 10:17:44

52 Views

The HTML DOM TouchEvent shiftKey property returns a Boolean value corresponding to the state if shift was pressed when a touch event was fired.Following is the syntax −Returning boolean value - true/falsetouchEvent.shiftKeyHere, “booleanValue” can be the following −booleanValueDetailstrueIt definesthat shift key was pressed when touch event occurredfalseIt definesthat shift key ... Read More

HTML DOM TouchEvent ctrlKey Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 10:06:20

39 Views

The HTML DOM TouchEvent ctrlKey property returns a Boolean value corresponding to the state if ctrl was pressed when a touch event was fired.Following is the syntax −Returning boolean value - true/falsetouchEvent.ctrlKeyHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that ctrl key waspressed when touch event occurredfalseIt defines that ctrl ... Read More

Advertisements