Front End Technology Articles - Page 550 of 860

HTML DOM Input Week disabled Property

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

126 Views

The Input Week disabled property sets/returns whether Input Week is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputWeekObject.disabledSetting disabled to booleanValueinputWeekObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailsTrueIt defines that the input week is disabled.FalseIt defines that the input week is not disabled and it is also the default value.ExampleLet us see an example for Input Week disabled property − Live Demo Input Week Disabled    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;   ... Read More

HTML DOM Input Week defaultValue Property

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

141 Views

The Input Week defaultValue property sets/returns the default value corresponding to Week Input. The value attribute changes as the user resets the week input but default value does not change.SyntaxFollowing is the syntax −Returning string valueinputWeekObject.defaultValueSetting defaultValue to stringinputWeekObject.defaultValue = ‘string’ExampleLet us see an example for Input Week defaultValue property − Live Demo Input Week defaultValue    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 autofocus Property

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

127 Views

The Input Week autofocus property sets/returns whether Input Week is focused upon initial page load.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputWeekObject.autofocusSetting autofocus to booleanValueinputWeekObject.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 for Input Week autofocus property − Live Demo Input Week autofocus    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;     ... Read More

HTML DOM Input URL value Property

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

149 Views

The HTML DOM Input URL value property returns a string if value attribute is defined of input URL. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputURLObject.valueSetting value attribute to a string valueinputURLObject.value = ‘String’ExampleLet us see an example for Input URL value property − Live Demo Input URL 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 URL size Property

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

110 Views

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

HTML DOM Input URL required Property

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

123 Views

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

HTML DOM Input URL readOnly Property

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

122 Views

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

HTML DOM Input URL placeholder Property

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

191 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

261 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

How to display the domain of the server that loaded a document in JavaScript?

Lokesh Yadav
Updated on 08-Dec-2022 07:58:49

501 Views

In this following article we are going to learn how to display the domain of the server that loaded a document in JavaScript. To display the domain of the server, we use domain property of the document interface, which returns the domain part of the current document. The domain property will return NULL if the document was created in memory. Attempting to set the domain property of the document interface results in SecurityError. To understand better, let’s look into the syntax and usage of domain property with suitable examples in JavaScript. Using domain property We can get the domain name ... Read More

Advertisements