Found 2202 Articles for HTML

HTML DOM Input URL placeholder Property

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

184 Views

The HTML DOM Input URL placeholder property sets/returns a string generally used to give hints to user of what the input text will look like.SyntaxFollowing is the syntax −Returning string valueinputURLObject.placeholderSetting placeholder to stringValueinputURLObject.placeholder = stringValueExampleLet us see an example of Input URL placeholder property − Live Demo Input URL placeholder    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

HTML DOM Input URL pattern Property

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

258 Views

The HTML DOM Input URL pattern property sets/returns the regular expression corresponding to URL Input. The pattern attribute’s value is checked against the text typed in url field.SytaxFollowing is the syntax −Returning regular expressioninputURLObject.patternSetting pattern to regular expressioninputURLObject.pattern = ‘RegExp’ExampleLet us see an example of Input URL pattern property − Live Demo Input URL pattern    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="submit"] {       border-radius: 10px;   ... Read More

HTML DOM Input URL name Property

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

110 Views

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

HTML DOM Input URL maxLength Property

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

129 Views

The HTML DOM Input URL maxLength property returns/sets the maxLength property for input URL. If not defined this property returns ‘-1’.SyntaxFollowing is the syntax −Returning maxLength attributeinputURLObject.maxLengthSet maxLength property to a numberinputURLObject.maxLength = numberExampleLet us see an example of Input URL maxLength property − Live Demo Input URL maxLength    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

HTML DOM Input URL form Property

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

135 Views

The HTML DOM Input URL form property returns the reference of enclosing form for input URL.SyntaxFollowing is the syntax −Returning reference to the form objectinputURLObject.formExampleLet us see an example of Input URL form property − Live Demo Input URL form    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {    padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } URL-form URL :   ... Read More

HTML DOM Input URL disabled Property

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

145 Views

The HTML DOM Input URL disabled property sets/returns whether Input URL is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputURLObject.disabledSetting disabled to booleanValueinputURLObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailsTrueIt defines that the input url is disabled.FalseIt defines that the input url is not disabled and it is also the default value.ExampleLet us see an example of Input URL disabled property − Live Demo Input Email disabled    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       ... Read More

HTML DOM Input URL defaultValue Property

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

129 Views

The HTML DOM Input URL defaultValue property sets/returns the default value corresponding to URL Input. The value attribute changes as the user types in the URL input but default value does not change.SyntaxFollowing is the syntax −Returning string valueinputURLObject.defaultValueSetting defaultValue to stringinputURLObject.defaultValue = ‘string’ExampleLet us see an example of Input URL defaultValue property − Live Demo Input URL defaultValue    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {     ... Read More

HTML DOM Input URL autofocus Property

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

140 Views

The HTML DOM Input URL autofocus property sets/returns whether Input URL is focused upon initial page load.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputURLObject.autofocusSetting autofocus to booleanValueinputURLObject.autofocus = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailsTrueIt defines that input will be autofocused on page load.FalseIt is the default value and input is not autofocused.ExampleLet us see an example of Input URL autofocus property − Live Demo Input URL autofocus    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px; ... Read More

HTML DOM Input URL autocomplete Property

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

156 Views

The HTML DOM Input URL autocomplete property sets/returns whether autocomplete is enabled or disabled. If enabled it shows previously typed values.SyntaxFollowing is the syntax −Returning value - on/offinputURLObject.autocompleteSetting autocomplete to valueinputURLObject.autocomplete = valueValuesHere, “value” can be the following −valueDetailsonIt defines that input has autocomplete attribute enabled.offIt defines that input autocomplete attribute is disabled.ExampleLet us see an example of Input URL autocomplete property − Live Demo Input URL autocomplete    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       ... Read More

HTML DOM Input Time value Property

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

126 Views

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

Advertisements