HTML Articles

Page 13 of 151

HTML DOM Fieldset disabled property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 459 Views

The HTML DOM Fieldset disabled property controls whether form elements inside a fieldset are enabled or disabled. When set to true, all form controls within the fieldset become disabled and appear greyed out. Users cannot interact with disabled elements − they cannot click, type, or select them. Syntax Following is the syntax to set the disabled property − fieldsetObject.disabled = true|false Following is the syntax to return the disabled property − fieldsetObject.disabled Where fieldsetObject is a reference to a fieldset element obtained using methods like getElementById() or querySelector(). Parameters ...

Read More

HTML DOM Fieldset Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 210 Views

The HTML DOM Fieldset object represents the HTML element, which groups related form controls and labels. This object provides properties and methods to dynamically create, access, and manipulate fieldset elements using JavaScript. The element is commonly used to group form inputs, checkboxes, radio buttons, and other controls together with an optional element that provides a caption for the group. Syntax Following is the syntax for creating a fieldset element using JavaScript − var fieldsetElement = document.createElement("FIELDSET"); To access an existing fieldset element by its ID − var fieldsetElement ...

Read More

HTML DOM Form autocomplete Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 206 Views

The HTML DOM Form autocomplete property is associated with the autocomplete attribute of the form element. This property allows you to set or return the autocomplete attribute value of a form, controlling whether the browser should automatically complete form fields based on previously entered values. When autocomplete is enabled ("on"), the browser suggests values based on user's previous input. When disabled ("off"), users must manually enter all values without browser assistance. The autocomplete property can be overridden for specific input fields within the form. Syntax Following is the syntax for setting the autocomplete property − ...

Read More

HTML DOM Input Reset object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 238 Views

The HTML DOM Input Reset object is associated with the element with type="reset". We can create and access an input element with type reset by using the createElement() and getElementById() methods respectively. The Reset button automatically clears all form fields to their initial values when clicked, making it useful for forms where users need to start over. Syntax Following is the syntax to create a reset input element − Following is the syntax to access a reset input element using JavaScript − var resetButton = document.getElementById("resetId"); Properties ...

Read More

HTML DOM Input Search autocomplete Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 304 Views

The HTML DOM Input Search autocomplete property is associated with the autocomplete attribute of the element with type="search". This property controls whether the browser should automatically suggest previously entered values when the user types in the search field. Syntax Following is the syntax for setting the autocomplete property − searchObject.autocomplete = "on|off" Following is the syntax for getting the autocomplete property − var autocompleteValue = searchObject.autocomplete Property Values The autocomplete property accepts the following values − on − The browser will automatically complete the user input ...

Read More

HTML DOM Input Search object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 177 Views

The HTML DOM Input Search object represents an input element with type="search" in the Document Object Model. This object provides properties and methods to manipulate search input fields dynamically through JavaScript, allowing you to create, access, and modify search functionality on web pages. Syntax Following is the syntax for creating an Input Search object − var searchElement = document.createElement("INPUT"); searchElement.setAttribute("type", "search"); Following is the syntax for accessing an existing Input Search object − var searchElement = document.getElementById("searchId"); Properties Following are the properties for the Input Search object − ...

Read More

HTML DOM Input Search placeholder property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 338 Views

The HTML DOM Input Search placeholder property is used for setting or returning the placeholder attribute value of an input search field. The placeholder property provides users with a hint about the expected input by displaying greyed-out text inside the search field. This text disappears when the user begins typing and is not submitted with the form data. Syntax Following is the syntax for setting the placeholder property − searchObject.placeholder = text Following is the syntax for getting the placeholder property − var placeholderText = searchObject.placeholder Here, text represents the ...

Read More

HTML DOM Input Search required property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 177 Views

The HTML DOM Input Search required property is associated with the required attribute of an element. This property sets or returns whether a search input field must be filled out before submitting the form. When set to true, the browser prevents form submission if the required search field is left empty. Syntax Following is the syntax for setting the required property − searchObject.required = true|false Following is the syntax for getting the required property − var isRequired = searchObject.required; Property Values The required property accepts the following boolean ...

Read More

HTML DOM Input Search type property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 159 Views

The HTML DOM Input search type property is associated with input elements that have type="search". This property returns the string "search" for search input elements and can be used to identify or verify the input type programmatically. The search input type creates a specialized text field optimized for search queries. Most browsers render it with rounded corners and may include features like a clear button (×) to quickly empty the field. Syntax Following is the syntax for getting the search type property − searchObject.type Following is the syntax for setting the type property ...

Read More

HTML DOM Input Search value property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 580 Views

The HTML DOM Input Search value property is associated with input elements having type="search". This property allows you to get or set the current value of a search input field, making it useful for both displaying default values and retrieving user input programmatically. Syntax Following is the syntax for getting the value property − var value = searchObject.value; Following is the syntax for setting the value property − searchObject.value = text; Here, text is a string representing the value to be set in the search field. Return Value ...

Read More
Showing 121–130 of 1,509 articles
« Prev 1 11 12 13 14 15 151 Next »
Advertisements