AmitDiwan has Published 10744 Articles

HTML DOM small object

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 12:45:56

155 Views

The HTML DOM small object is associated with HTML element. We can create and access small element using the createElement() and getElementById() method respectively.SyntaxFollowing is the syntax for −Creating a small object −var s= document.createElement("SMALL");ExampleLet us look at an example for the small object − Small object ... Read More

HTML DOM Input Text readOnly property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 12:36:03

481 Views

The HTML DOM Input Text readOnly property is used for setting or returning if the input text field is read-only or not. The readOnly property makes the element non-editable but it can still be focused by tab or click. If there is a default value inside a read-only element then ... Read More

HTML DOM Input Text placeholder property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 12:33:45

348 Views

The HTML DOM Input Text placeholder property is used for setting or returning the placeholder attribute value of an input text field. The placeholder property is used for giving the web page users a hint about the input element by showing a text inside the input field before the user ... Read More

HTML DOM Input Text pattern property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 12:31:06

146 Views

The HTML DOM Input Text pattern property is used for setting or returning the pattern attribute of an input text field. It checks the text against a regular expression specified by the pattern property.SyntaxFollowing is the syntax for −Setting the pattern property −textObject.pattern = regexpHere, regexp is a regular expression ... Read More

HTML DOM Input Text autofocus Property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 11:40:11

175 Views

The HTML DOM input Text autofocus property is associated with the HTML element’s autofocus attribute. This property is used for setting or returning if the input text field should be automatically focused when the page loads or not.SyntaxFollowing is the syntax for −Setting the autofocus property −textObject.autofocus = true|falseHere, ... Read More

HTML DOM Input Text autocomplete Property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 11:37:35

197 Views

The HTML DOM Input Text autocomplete property is associated with the autocomplete attribute of the element with type=”text”. The autocomplete attribute takes “on” or “off” value. The on value specifies that the web browser must automatically complete user text based on previous input while false states otherwise.SyntaxFollowing is the ... Read More

HTML DOM Input Submit formNoValidate property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 11:20:17

97 Views

The HTML DOM Input Submit formNoValidate property is used for setting or returning the formNoValidate attribute value of a submit button. The formNoValidate property is used for indicating if the form data should be validated or not when submitted to the server. It overrides the novalidate property of the ... Read More

HTML DOM Input Submit form property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 11:04:16

256 Views

The HTML DOM Input Submit form property is used for returning the form reference that contains the given submit button. If the submit button is outside the form then it will simply return NULL. This property is read-only.SyntaxFollowing is the syntax for input submit form property −submitObject.formExampleLet us look at ... Read More

HTML DOM Input Submit disabled property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 11:01:43

223 Views

The HTML DOM Input submit disabled property is used for setting or returning if the submit button should be disabled or not. It uses boolean values with true representing the submit button should be disabled and false otherwise. The disabled property is set to false by default. However, the disabled ... Read More

HTML DOM Input Search readOnly property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 10:11:11

125 Views

The HTML DOM Input Search readOnly property is used for setting or returning if the input search field is read-only or not. The readOnly property makes the element non-editable but it can still be focused by tab or click. If there is a default value inside a read-only element then ... Read More

Advertisements