AmitDiwan has Published 11698 Articles

HTML DOM Italic Object

AmitDiwan

AmitDiwan

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

96 Views

The HTML DOM Italic Object represents an element which displays text in italic.SyntaxFollowing is the syntax −Creating an elementvar italicObject = document.createElement(“I”)ExampleLet us see an example for Italic object element − Live Demo Italic Object    form {       width:70%;       margin: ... Read More

HTML DOM Input DatetimeLocal form Property

AmitDiwan

AmitDiwan

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

55 Views

The HTML DOM Input DatetimeLocal form property returns the reference of enclosing form for input DatetimeLocal.SyntaxFollowing is the syntax −Returning reference to the form objectinputDatetimeLocalObject.formExampleLet us see an example of Input DatetimeLocal form property − Live Demo Input DatetimeLocal form    form {       width:70%;   ... Read More

HTML DOM item( ) Method

AmitDiwan

AmitDiwan

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

66 Views

The HTML DOM item() method returns a node from a node list object.Note − The item() method is used to provide index value in a node list object. It is same as getting node by passing index value in ‘[index]’ on node list object.SyntaxFollowing is the syntax −Calling item(index), where ... Read More

HTML DOM Input DatetimeLocal max Property

AmitDiwan

AmitDiwan

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

67 Views

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

HTML DOM Kbd Object

AmitDiwan

AmitDiwan

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

52 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

92 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

43 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

52 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