AmitDiwan has Published 10740 Articles

HTML DOM Ul Object

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:32:25

143 Views

The HTML DOM Ul Object in HTML represents the element.Creating a elementvar ulObject = document.createElement(“UL”)Here, “ulObject” can have the following properties but are not supported in HTML5 −PropertyDescriptioncompactItsets/returns whether the unordered list should be displayedsmaller than usualtypeItsets/returns the value of the type attribute of an unordered listLet us ... Read More

HTML DOM Underline Object

AmitDiwan

AmitDiwan

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

213 Views

The HTML DOM Underline Object in HTML represents the element.Creating a elementvar uObject = document.createElement(“U”)Let us see an example of Underline element −Example Live Demo HTML DOM Underline    form {       width:70%;       margin: 0 auto;       text-align: center; ... Read More

HTML DOM UiEvent Object

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:18:42

83 Views

The HTML DOM UiEvent Object represents an event which incurs on user’s interaction with HTML elements.Here, “UiEvent” can have the following properties and methods −Property/MethodDescriptiondetailItreturns a number with details about the eventviewItreturns a reference to the Window object where the event occurredLet us see an example of Event detail property ... Read More

HTML DOM Event type Property

AmitDiwan

AmitDiwan

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

140 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

109 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

100 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

72 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

139 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

130 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

189 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

Advertisements