AmitDiwan has Published 11365 Articles

HTML DOM TouchEvent altKey Property

AmitDiwan

AmitDiwan

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

37 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

215 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 text Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 09:50:12

83 Views

The HTML DOM Title text property sets/returns the value of the element of the document.Following is the syntax −Returning string valuetitleElementObject.textSet text to a string valuetitleElementObject.text = stringLet us see an example of Title text property −Example Live Demo HTML DOM Title text    form {   ... Read More

HTML DOM Title Object

AmitDiwan

AmitDiwan

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

121 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

132 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

65 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 textContent Property

AmitDiwan

AmitDiwan

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

92 Views

The HTML DOM textContent property returns/sets a string corresponding to the text (including whitespaces) of the node and all its child nodes as well.Following is the syntax −Returning string valueNode.textContentHere, the return value can be the following −‘Null’ for document nodesText of specified node and all its child nodesSet textContent ... Read More

HTML DOM Ol type Property

AmitDiwan

AmitDiwan

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

92 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

66 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

HTML DOM Ol reversed Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:50:55

102 Views

The HTML DOM Ol reversed property sets/returns whether the order of list should be descending or ascending (default).Following is the syntax −Returning boolean value - true/falseolObject.reversedSetting reversed to booleanValueolObject.reversed = booleanValueHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that order willbe descendingfalseIt defines that order willbe ascending which is defaultLet us ... Read More

Advertisements