AmitDiwan has Published 11434 Articles

HTML DOM Kbd Object

AmitDiwan

AmitDiwan

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

54 Views

The Kbd Object represents an inline element which displays monospace font by default.SyntaxFollowing is the syntax −Creating a elementvar kbdObject = document.createElement(“KBD”)ExampleLet us see an example for Kbd object element − Live Demo Kbd Object    form {       width:70%;       margin: 0 ... Read More

HTML DOM Input DatetimeLocal min Property

AmitDiwan

AmitDiwan

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

93 Views

The HTML DOM Input DatetimeLocal min property returns/sets min attribute of Input DatetimeLocal.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.minSetting min to string valueinputDatetimeLocalObject.min = YYYY-MM-DDThh:mm:ssString ValuesHere, “YYYY-MM-DDThh:mm:ss” can be the following −stringValueDetailsYYYYIt defines year (eg:199)MMIt defines month (eg: 07 for July)DDIt defines Day (eg: 11)TIt is a separator for date ... Read More

HTML DOM KeyboardEvent charCode Property

AmitDiwan

AmitDiwan

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

46 Views

The KeyboardEvent charCode 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 charCode −event.charCodeExampleLet us see an example for KeyboardEvent charCode property − Live Demo KeyboardEvent charCode   ... Read More

HTML DOM KeyboardEvent code Property

AmitDiwan

AmitDiwan

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

54 Views

The KeyboardEvent code property returns the key identifier corresponding to the key pressed using an event.Note − Use key property instead for accurate resultsSyntaxFollowing is the syntax −Returning latest typed character’s code −event.codeExampleLet us see an example for KeyboardEvent code property − Live Demo KeyboardEvent code    form ... Read More

Advertisements