AmitDiwan has Published 11367 Articles

HTML DOM Input DatetimeLocal required Property

AmitDiwan

AmitDiwan

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

49 Views

The HTML DOM Input DatetimeLocal required property determines whether Input DatetimeLocal is compulsory to set or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDatetimeLocalObject.requiredSetting required to booleanValueinputDatetimeLocalObject.required = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt is compulsory to set the datetimeLocal field to submit form.falseIt is the default ... Read More

HTML DOM KeyboardEvent location Property

AmitDiwan

AmitDiwan

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

54 Views

The HTML DOM KeyboardEvent loaction property returns the number corresponding to location of key pressed on the keyboard.SyntaxFollowing is the syntax −Returning location of pressed key −event.locationNumbersHere, number returned can be the following −numberDescriptions0It represents almost all values on the keyboard. (every key in the middle section of keyboard, eg: ... Read More

HTML DOM Input DatetimeLocal step Property

AmitDiwan

AmitDiwan

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

211 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

65 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

44 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

60 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

60 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

50 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

151 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

168 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

Advertisements