Found 2202 Articles for HTML

HTML DOM InputEvent data Property

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

79 Views

The HTML DOM InputEvent data property returns the string corresponding to character that was typed using an event.SyntaxFollowing is the syntax −Returning latest typed character in text field −event.dataExampleLet us see an example for InputEvent data property − Live Demo InputEvent Data    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } InputEvent-Data Fill in the blanks: ... Read More

HTML DOM Input Week value Property

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

140 Views

The HTML DOM Input Week value property returns a string if value attribute is defined of input week. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputWeekObject.valueSetting value attribute to a string valueinputWeekObject.value = ‘String’ExampleLet us see an example for Input Week value property − Live Demo Input Week value    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;   ... Read More

HTML DOM Input Week type Property

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

141 Views

The HTML DOM Input Week type property returns/sets type of Input Week.SyntaxFollowing is the syntax −Returning string valueinputWeekObject.typeSetting type to string valueinputWeekObject.type = stringValueString ValuesHere, “stringValue” can be the following −stringValueDetailsweekIt defines that input type is weekdatetime-localIt defines that input type is datetime-localcheckboxIt defines that input type is checkboxtextIt defines that input type is textExampleLet us see an example for Input Week type property − Live Demo Input Week type    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;   ... Read More

HTML DOM Input Week stepUp( ) Method

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

76 Views

The HTML DOM Input Week stepUp() method defines the amount of weeks the week field should increase.SyntaxFollowing is the syntax −Calling stepUp() method with a number, which by default is equal to 1inputWeekObject.stepUp(number)ExampleLet us see an example for Input Week stepUp() method − Live Demo Input Week stepUp()    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Week-stepUp( ... Read More

HTML DOM Input Week stepDown( ) Method

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

103 Views

The HTML DOM Input Week stepDown() method defines the amount of weeks the week field should decrease.SyntaxFollowing is the syntax −Calling stepDown() method with a number, which by default is equal to 1inputWeekObject.stepDown(number)ExampleLet us see an example for Input Week stepDown() method − Live Demo Input Week stepDown()    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Week-stepDown( ... Read More

HTML DOM Input Week step Property

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

132 Views

The HTML DOM Input Week step property determines the legal intervals for only weeks.SyntaxFollowing is the syntax −Returning number valueinputWeekObject.stepSetting step attribute to a number valueinputWeekObject.step = numberParametersParameter number values −weeksall values are legal values as long as it is a positive integerExampleLet us see an example for Input Week step property − Live Demo Input Week step    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: ... Read More

HTML DOM Input Week required Property

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

118 Views

The HTML DOM Input Week required property determines whether Input Week is compulsory to set or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputWeekObject.requiredSetting required to booleanValueinputWeekObject.required = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt is compulsory to set the week field to submit form.falseIt is the default value and to set week field is not compulsory.ExampleLet us see an example for Input Week required property − Live Demo Input Week required    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {   ... Read More

HTML DOM Input Week readOnly Property

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

110 Views

The HTML DOM Input Week readOnly property sets/returns whether Input Week can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputWeekObject.readOnlySetting readOnly to booleanValueinputWeekObject.readOnly = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input week field is readOnly.falseIt defines that the input week field is not readOnly and can be modified.ExampleLet us see an example for Input Week readOnly property − Live Demo Input Week readOnly    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: ... Read More

HTML DOM Input Week Object

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

124 Views

The HTML DOM Input Week Object represents an input HTML element with type week.SyntaxFollowing is the syntax −Creating an with type Weekvar weekObject = document.createElement(“INPUT”); weekObject.type = “week”;AttributesHere, “weekObject” can have the following attributes −AttributesDescriptionautocompleteIt defines the value of autocomplete attribute of a week fieldautofocusIt defines if the week field should be focused on initial page load.defaultValueIt sets/returns the default value of week fielddisabledIt defines if week field is disabled/enabledformIt returns a reference of enclosing form that contains the week fieldmaxIt returns/sets the value of max attribute of week fieldminIt returns/sets the value of min attribute of week fieldnameIt ... Read More

HTML DOM Input Week name Property

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

111 Views

The HTML DOM Input Week name property returns a string if name attribute is defined of input Week. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputWeekObject.nameSetting name attribute to a string valueinputWeekObject.name = ‘String’ExampleLet us see an example for Input Week name property − Live Demo Input Week name    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;   ... Read More

Advertisements