Front End Technology Articles

Page 14 of 652

HTML DOM Input Radio object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 256 Views

The HTML DOM Input Radio object represents an element with type="radio". Radio buttons allow users to select one option from a group of related choices. The Input Radio object provides properties and methods to dynamically create, access, and manipulate radio button elements using JavaScript. Syntax Following is the syntax for creating an input radio object − var radioElement = document.createElement("INPUT"); radioElement.setAttribute("type", "radio"); Following is the syntax for accessing an existing input radio object − var radioElement = document.getElementById("radioId"); Properties Following are the key properties of the Input Radio ...

Read More

HTML DOM Input Radio required property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 277 Views

The HTML DOM Input Radio required property is associated with the required attribute of an element. The required property is used for setting and returning whether it is necessary to check a radio button before the form is submitted to the server. This allows the form to not submit if a radio button with the required attribute is left unchecked by the user. Syntax Following is the syntax for setting the required property − radioObject.required = true|false Following is the syntax for getting the required property − var isRequired = radioObject.required; ...

Read More

HTML DOM Input Password pattern property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 493 Views

The HTML DOM Input Password pattern property is used for setting or returning the pattern attribute of an input password field. It validates the password against a regular expression specified by the pattern property to ensure the input meets specific format requirements. Syntax Following is the syntax for setting the pattern property − passwordObject.pattern = regexp Following is the syntax for returning the pattern property − passwordObject.pattern Parameters regexp − A string containing a regular expression that the password input value must match. If the input doesn't match the ...

Read More

HTML DOM Input Password placeholder property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 469 Views

The HTML DOM Input Password placeholder property is used for setting or returning the placeholder attribute value of a password input field. The placeholder provides a hint to users about what kind of input is expected, displaying greyed-out text inside the field before any user input. Unlike the value property, placeholder text is not submitted with the form data. Syntax Following is the syntax for setting the placeholder property − passwordObject.placeholder = text Following is the syntax for getting the placeholder property − var placeholderText = passwordObject.placeholder Parameters text ...

Read More

HTML DOM Input Password required property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 218 Views

The HTML DOM Input Password required property is associated with the required attribute of an element with type="password". This property sets or returns whether a password field must be filled before form submission. When set to true, the browser prevents form submission if the password field is empty and displays a validation message. Syntax Following is the syntax for setting the required property − passwordObject.required = true|false Following is the syntax for getting the required property − var isRequired = passwordObject.required; Parameters The required property accepts the following ...

Read More

HTML DOM Input Radio value Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 260 Views

The HTML DOM Input Radio value property is used to set or return the value of the value attribute for a radio button element. This property allows you to access or modify the value that will be sent to the server when the form is submitted. The value property doesn't affect the visual appearance of the radio button on the webpage. Instead, it serves as an identifier to distinguish between different radio buttons in the same group when form data is processed. Syntax Following is the syntax to return the value property − radioObject.value ...

Read More

HTML DOM Input Range max property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 242 Views

The HTML DOM Input Range max property is used for setting or returning the max attribute value for the range slider control. This attribute indicates the maximum value of the slider control and is often used with the min property to create a range of values between which the slider can move. Syntax Following is the syntax for setting the Range max property − rangeObject.max = number Following is the syntax for returning the Range max property − var maxValue = rangeObject.max Here, number represents the maximum slider control value, ...

Read More

HTML DOM Input Range min property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 212 Views

The HTML DOM Input Range min property is used for setting or returning the min attribute value for the range slider control. This attribute indicates the minimum value of the slider control and is often used with the max property to create a range of values between which the slider can move. Syntax Following is the syntax for setting the Range min property − rangeObject.min = number Following is the syntax for getting the Range min property − var minValue = rangeObject.min Parameters The min property accepts the following ...

Read More

HTML DOM Input Range name property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

The HTML DOM Input Range name property is used for setting or returning the name attribute of an input range field. 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 to form elements for manipulation later on. Syntax Following is the syntax for setting the name property − rangeObject.name = name Following is the syntax for getting the name property − rangeObject.name Parameters name − A string specifying the name attribute value ...

Read More

HTML DOM Input Range object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 279 Views

The HTML DOM Input Range object represents an element with type="range". This object provides methods and properties to manipulate range slider controls through JavaScript. We can create a new range input using createElement() or access an existing one using getElementById(). Syntax Creating a new input range element − var rangeElement = document.createElement("INPUT"); rangeElement.setAttribute("type", "range"); Accessing an existing input range element − var rangeElement = document.getElementById("myRange"); HTML syntax for range input − Properties Following are the properties for the Input Range object − ...

Read More
Showing 131–140 of 6,519 articles
« Prev 1 12 13 14 15 16 652 Next »
Advertisements