AmitDiwan has Published 11367 Articles

HTML DOM Input Text pattern property

AmitDiwan

AmitDiwan

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

101 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

101 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

111 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

50 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

171 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

141 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

65 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

HTML DOM Input Search object

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 10:00:53

99 Views

The HTML DOM Input Search object is associated with the element with type “search”. We can create and access an input element with type search using the createElement() and getElementById() method respectively.PropertiesFollowing are the properties for the Input Search object −PropertyDescriptionautocompleteTo set or return if the search field should ... Read More

HTML DOM Input Search name Property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 09:57:00

89 Views

The HTML DOM Input Search name property is used for setting or returning the name attribute of a reset button. The name attribute helps in identifying the form data after it has been submitted to the server. JavaScript can also use the name attribute to refer form elements for manipulating ... Read More

HTML DOM Input Search maxLength Property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 09:13:06

87 Views

The HTML DOM Input Search maxlength property is used for setting or returning the maxlength attribute of the input search field. The maxLength property specifies the maximum number of characters you can type in a search field.SyntaxFollowing is the syntax for −Set the maxLength property −passwordObject.maxLength = integerHere, integer specifies ... Read More

Advertisements