Front End Technology Articles - Page 551 of 860

HTML DOM Input URL name Property

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

118 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

136 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

138 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

152 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

140 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

150 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

159 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

133 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

HTML DOM Input Time type Property

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

242 Views

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

How to find the href attribute of a link in a document in JavaScript?

Lokesh Yadav
Updated on 08-Dec-2022 07:56:56

3K+ Views

In this following article we are going to learn how to find the href attribute of a link in a document in JavaScript. The DOM property in the JavaScript provides many properties like , , , , , . There are two ways we can represent the links in HTML DOM. The DOM object provides links property. The href attribute in the anchor tag specifies the URL. To get the href attribute, we need to find the anchor object reference. To get a better idea of this concept, let’s look into the syntax and usage of the href attribute of ... Read More

Advertisements