AmitDiwan has Published 10744 Articles

HTML DOM TransitionEvent elapsedTime Property

AmitDiwan

AmitDiwan

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

60 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

113 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

111 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

156 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

187 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

94 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

66 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

HTML DOM TouchEvent altKey Property

AmitDiwan

AmitDiwan

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

76 Views

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

HTML DOM touchend Event

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 09:56:55

305 Views

The HTML DOM touchend event is triggered when touch is removed from touch screen.NOTE: This event is only for touch devices.Following is the syntax −Trigger touchend event in HTML −ontouchend = "eventFunction()"Trigger touchend event in JavaScript −eventObject.ontouchend = eventFunctionLet us see an example of touchend event property −Example Live Demo ... Read More

HTML DOM Title Object

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 09:44:38

164 Views

The HTML DOM Title Object in HTML represents the element.Creating a elementvar titleObject = document.createElement(“TITLE”)Here, “titleObject” can have the following properties −PropertyDescriptiontextItsets/returns the value of the element of thedocumentLet us see an example of Title text property −Example Live Demo HTML DOM Title text   ... Read More

Advertisements