AmitDiwan has Published 10744 Articles

HTML DOM Input DatetimeLocal readOnly Property

AmitDiwan

AmitDiwan

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

175 Views

The HTML DOM Input DatetimeLocal readOnly property sets/returns whether Input DatetimeLocal can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDatetimeLocalObject.readOnlySetting readOnly to booleanValueinputDatetimeLocalObject.readOnly = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input datetimeLocal field is readOnly.falseIt defines that the input datetimeLocal field ... Read More

HTML DOM KeyboardEvent keyCode Property

AmitDiwan

AmitDiwan

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

79 Views

The KeyboardEvent keyCode property returns the unicode character codes corresponding to character that was pressed using an event.Note − Use key property instead for accurate resultsSyntaxFollowing is the syntax −Returning latest typed character’s keyCode −event.keyCodeExampleLet us see an example for KeyboardEvent keyCode property − Live Demo KeyboardEvent keyCode ... Read More

HTML DOM Input DatetimeLocal required Property

AmitDiwan

AmitDiwan

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

106 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

114 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

337 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

108 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

77 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

101 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

95 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

106 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

Advertisements