Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Web Development Articles
Page 11 of 801
HTML DOM Input Password form Property
The HTML DOM Input Password form property is used for returning the form reference that contains the input password field. If the input password field is outside the form then it will simply return null. This property is read-only. Syntax Following is the syntax for input password form property − passwordObject.form Return Value The form property returns one of the following values − Form object − A reference to the form element that contains the password input field. null − If the password input field is not contained ...
Read MoreHTML DOM exitFullscreen() method
The HTML DOM exitFullscreen() method is used to exit fullscreen mode for an element that is currently displayed in fullscreen. This method is called on the document object, not on individual elements, and it returns a Promise that resolves when the element has exited fullscreen mode. Syntax Following is the syntax for the exitFullscreen() method − document.exitFullscreen() Return Value The method returns a Promise that resolves to undefined when fullscreen mode is successfully exited. The Promise may be rejected if an error occurs during the exit process. How It Works The ...
Read MoreHTML DOM Fieldset disabled property
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 MoreHTML DOM Fieldset Object
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 MoreHTML DOM Form autocomplete Property
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 MoreHTML DOM Input Reset object
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 MoreHTML DOM Input Search autocomplete Property
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 MoreHTML DOM Input Search object
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 MoreHTML DOM Input Search placeholder property
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 MoreHTML DOM Input Search required property
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