AmitDiwan has Published 10740 Articles

HTML DOM TouchEvent targetTouches Property

AmitDiwan

AmitDiwan

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

206 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

120 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

85 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

105 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

331 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

176 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

HTML DOM Time Object

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 07:23:04

206 Views

The HTML DOM Time Object in HTML represents the element.Creating a elementvar timeObject = document.createElement(“TIME”)Here, “timeObject” can have the following properties −PropertyDescriptiondateTimeItsets/returns the value of the dateTime attribute of a elementLet us see an example of Time dateTime property −Example Live Demo Time dateTime    form ... Read More

HTML DOM Time dateTime Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 07:13:11

115 Views

The HTML DOM Time dateTime property returns/sets datetime attribute of time element.Following is the syntax −Returning string valuetimeObject.dateTimeSetting dateTime to string valuetimeObject.dateTime = YYYY-MM-DDThh:mm:ssTZDHere, “YYYY-MM-DDThh:mm:ssTZD” can be the following −stringValueDetailsYYYYIt defines year (eg:1998)MMIt defines month (eg: 05 for May)DDIt defines Day (eg: 24)TIt is a separator for date and timehhIt ... Read More

HTML DOM Ol type Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:58:48

164 Views

The HTML DOM Ol type property sets/returns the value of the type attribute which corresponds to the type of marker used in an ordered list.Following is the syntax −Returning type propertyolObject.typeSetting type to a characterolObject.type = ‘1|a|A|i|I’Let us see an example of Ol type property −Example Live Demo HTML ... Read More

HTML DOM Ol start Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:54:57

124 Views

The HTML DOM Ol start property sets/returns the value of the start attribute of an ordered list.Following is the syntax −Returning number valueolObject.startSetting start to numberolObject.start = numberLet us see an example of Ol start property −Example Live Demo HTML DOM Ol start    form {     ... Read More

Advertisements