AmitDiwan has Published 10740 Articles

HTML DOM Input DatetimeLocal step Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

366 Views

The HTML DOM Input DatetimeLocal step property determines the legal intervals for seconds or milliseconds.SyntaxFollowing is the syntax −Returning number valueinputDatetimeLocalObject.stepSetting step attribute to a number valueinputDatetimeLocalObject.step = numberParametersParameter number values −ValueDescriptionsecondsvalid values constitute of those numbers that divide 60 perfectly (eg: 10, 15, 20)millisecondsvalid values start with “.” and ... Read More

HTML DOM KeyboardEvent metaKey Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

128 Views

The HTML DOM KeyboardEvent metaKey property returns the Boolean value (true/false) corresponding to if meta key was pressed using an event or not.SyntaxFollowing is the syntax −Returning booleanValue −event.metaKeyExampleLet us see an example for KeyboardEvent metaKey property − Live Demo KeyboardEvent metaKey    form {       ... Read More

HTML DOM Input DatetimeLocal stepDown( ) Method

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

92 Views

The HTML DOM Input DatetimeLocal stepdown() method defines the number of minutes the datetimeLocal field should decrease.SyntaxFollowing is the syntax −Calling stepDown method with a number, which by default is equal to 1inputDatetimeLocalObject.stepDown(number)ExampleLet us see an example of Input DatetimeLocal stepDown method − Live Demo Input DatetimeLocal stepDown() ... Read More

HTML DOM KeyboardEvent shiftKey Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

124 Views

The HTML DOM KeyboardEvent shiftKey property returns the Boolean value (true/false) corresponding to if shift key was pressed using an event or not.SyntaxFollowing is the syntax −Returning booleanValue −event.shiftKeyExampleLet us see an example for KeyboardEvent shiftKey property − Live Demo KeyboardEvent shiftKey    form {       ... Read More

HTML DOM Input DatetimeLocal stepUp( ) Method

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

108 Views

The HTML DOM Input DatetimeLocal stepUp() method defines the number of minutes the datetimeLocal field should increase.SyntaxFollowing is the syntax −Calling stepUp method with a number, which by default is equal to 1inputDatetimeLocalObject.stepUp(number)ExampleLet us see an example of Input DatetimeLocal stepUp method − Live Demo Input DatetimeLocal stepUp() ... Read More

HTML DOM KeyboardEvent Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

130 Views

The HTML DOM KeyboardEvent Object represents an event when user presses a key on keyboard.PropertiesHere, “KeyboardEvent” can have the following properties and methods −Property/MethodDescriptionaltKeyIt returns whether the "ALT" key was pressed or notcharCodeIt returns the Unicode character code of the keycodeIt returns the code of the keyctrlKeyIt returns whether the ... Read More

HTML DOM Label htmlFor Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

212 Views

The HTML DOM Label htmlFor property returns/sets the value of for attribute.SyntaxFollowing is the syntax −Returning value of for attribute −labelObject.htmlForExampleLet us see an example for Label htmlForproperty − Live Demo Label htmlFor    form {       width:70%;       margin: 0 auto;     ... Read More

HTML DOM Label Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

234 Views

The HTML DOM Label Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar labelObject = document.createElement(“LABEL”)PropertiesHere, “LabelObject” can have the following properties −PropertyDescriptionControlIt returns the control of the labelformIt returns a reference of enclosing form that contains the labelhtmlForIt returns/sets the value of the for ... Read More

HTML DOM Input DatetimeLocal type Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

143 Views

The HTML DOM Input DatetimeLocal type property returns/sets type of Input DatetimeLocal.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.typeSetting type to string valueinputDatetimeLocalObject.type = stringValueString ValuesHere, “stringValue” can be the following −stringValueDetailsdateIt defines that input type is datedatetime-localIt defines that input type is datetime-localcheckboxIt defines that input type is checkboxtextIt defines ... Read More

HTML DOM Input DatetimeLocal value Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

143 Views

The HTML DOM Input DatetimeLocal value property returns a string, which is the value of the value attribute of input datetimeLocal. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.valueSetting value attribute to a string valueinputDatetimeLocalObject.value = ‘String’ExampleLet us see an example of Input ... Read More

Advertisements