AmitDiwan has Published 10740 Articles

HTML DOM Input Time stepDown( ) Method

AmitDiwan

AmitDiwan

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

107 Views

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

HTML DOM Input Date max Property

AmitDiwan

AmitDiwan

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

173 Views

The HTML DOM Input Date max property returns/sets max attribute of Input date type.SyntaxFollowing is the syntax −Returning string valueinputDateObject.maxSetting max to string valueinputDateObject.max = YYYY-MM-DDString ValuesHere, “YYYY-MM-DD” can be the following −stringValueDetailsYYYYIt defines year (eg:1998)MMIt defines month (eg: 05 for May)DDIt defines Day (eg: 24)ExampleLet us see an example of Input ... Read More

HTML DOM Input Date min Property

AmitDiwan

AmitDiwan

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

168 Views

The HTML DOM Input Date min property returns/sets min attribute of Input date type.SyntaxFollowing is the syntax −Returning string valueinputDateObject.minSetting min to string valueinputDateObject.min = YYYY-MM-DDString ValuesHere, “YYYY-MM-DD” can be the following −stringValueDetailsYYYYIt defines year (eg:1998)MMIt defines month (eg: 05 for May)DDIt defines Day (eg: 24)ExampleLet us see an example ... Read More

HTML DOM Input Date Object

AmitDiwan

AmitDiwan

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

231 Views

The HTML DOM Input Date Object represents an input HTML element with type date.SyntaxFollowing is the syntax −Creating an with type datevar dateObject = document.createElement(“input”); dateObject.type = “date”;AttributesHere, “dateObject” can have the following attributes −AttributesDescriptionautocompleteIt defines the value of autocomplete attribute of a date fieldautofocusIt defines if the date ... Read More

HTML DOM Input Date readOnly Property

AmitDiwan

AmitDiwan

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

201 Views

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

HTML DOM Input Date required Property

AmitDiwan

AmitDiwan

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

179 Views

The HTML DOM Input Date required property determines whether Input date is compulsory to set or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDateObject.requiredSetting required to booleanValueinputDateObject.required = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that it is compulsory to set the date field to submit form.falseIt ... Read More

HTML DOM Select add() Method

AmitDiwan

AmitDiwan

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

192 Views

The HTML DOM select add() method adds a new option to a drop-down list in an HTML document.SyntaxFollowing is the syntax −object.add(option, index)ExampleLet us see an example of HTML DOM select add() method − Live Demo    html{       height:100%;    }    body{     ... Read More

HTML DOM Select remove() Method

AmitDiwan

AmitDiwan

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

140 Views

The HTML DOM select remove() method removes a new option from a drop-down list in an HTML document.SyntaxFollowing is the syntax −object.remove(index)Here, index represents the index of the option which is to be removed from the drop-down list.ExampleLet us see an example of HTML DOM select remove() method − Live Demo ... Read More

HTML DOM Option Object

AmitDiwan

AmitDiwan

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

251 Views

The HTML DOM option Object represent the element of an HTML document.Let us now see how to create option object −SyntaxFollowing is the syntax −document.createElement(“OPTION”);PropertiesFollowing are the properties of option Object −PropertyExplanationdisabledIt returns and modify whether the option element is disabled or not.defaultSelectedIt returns the default value of option ... Read More

HTML DOM Samp Object

AmitDiwan

AmitDiwan

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

170 Views

The HTML DOM Samp Object represent the element of an HTML document.Let us create a samp object −SyntaxFollowing is the syntax −document.createElement(“SAMP”);ExampleLet us see an example of samp object − Live Demo    body{       text-align:center;       background-color:#fff;       color:#0197F6;   ... Read More

Advertisements