HTML Articles

Page 104 of 151

HTML DOM Input Hidden name Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 209 Views

The HTML DOM Input Hidden name property is used to get or set the value of the name attribute of a hidden input field. Hidden input fields are form elements that are not visible to users but can store data that needs to be submitted with the form. Syntax Following is the syntax for getting the name property − object.name Following is the syntax for setting the name property − object.name = "text" Where object is a reference to the hidden input element, and "text" is the new name value ...

Read More

HTML DOM Input Month name Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 180 Views

The HTML DOM Input Month name property gets or sets the value of the name attribute of an input field with type="month". The name attribute identifies the form field when data is submitted to the server, making it essential for form processing. Syntax Following is the syntax for getting the name property − object.name Following is the syntax for setting the name property − object.name = "text" Return Value The name property returns a string representing the value of the name attribute. If no name attribute is specified, it ...

Read More

HTML DOM Input Month max Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 199 Views

The HTML DOM Input Month max property returns and modifies the value of the max attribute of an input field with type="month". This property sets the latest month that users can select in a month picker control. Syntax Following is the syntax for returning the max value − object.max Following is the syntax for setting the max value − object.max = "YYYY-MM" Here, YYYY represents the year and MM represents the month (e.g., "2019-02" for February 2019). Return Value The max property returns a string representing the maximum ...

Read More

HTML DOM Input Month required Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 147 Views

The HTML DOM Input Month required property is used to set or return whether a month input field must be filled out before submitting a form. This property corresponds to the HTML required attribute and provides client-side validation for month input elements. Syntax Following is the syntax for getting the required property − object.required Following is the syntax for setting the required property − object.required = true | false Property Values The required property accepts the following boolean values − true − The month input field is ...

Read More

HTML DOM Input Month step Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 156 Views

The HTML DOM Input Month step property is used to get or set the value of the step attribute for an input element of type month. The step attribute specifies the legal number intervals for month values, controlling how the month picker increments or decrements when using the arrow controls. When you set a step value, the month input will only accept values that are multiples of that step from the minimum value. For example, with step="3", the input will increment by 3 months at a time. Syntax Following is the syntax for returning the step value ...

Read More

HTML DOM Input Month type Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 196 Views

The HTML DOM Input Month type property returns the value of the type attribute of an input month field. This property is read-only and always returns "month" for input elements with type="month". Syntax Following is the syntax to access the type property − inputObject.type Return Value This property returns a string representing the type of the input element. For month input fields, it always returns "month". Example Following example demonstrates how to get the type property of an input month field − Input ...

Read More

HTML DOM Input Month form Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 148 Views

The HTML DOM input month form property returns a reference to the form element that contains the month input field. This read-only property is useful for identifying which form a month input belongs to, especially in documents with multiple forms. Syntax Following is the syntax for accessing the form property − monthInputElement.form Return Value The property returns a reference to the element that contains the month input field, or null if the input is not contained within a form. Example − Basic Form Reference Following example demonstrates how to get ...

Read More

HTML DOM Input Number form Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 153 Views

The HTML DOM input number form property returns a reference to the form element that contains a specific number input field. This property is read-only and provides access to the parent form element, allowing you to manipulate form properties or access other form elements programmatically. Syntax Following is the syntax for the input number form property − numberInputObject.form Return Value This property returns a reference to the element that contains the number input field. If the number input is not inside a form, it returns null. Example − Basic Form Reference ...

Read More

HTML DOM Input Number autofocus Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 171 Views

The HTML DOM Input Number autofocus property returns and modifies whether a number input field should automatically receive focus when the page loads. This property corresponds to the autofocus HTML attribute and allows dynamic control over input focus behavior. Syntax Following is the syntax for returning the autofocus property − object.autofocus Following is the syntax for setting the autofocus property − object.autofocus = true | false Return Value The property returns a Boolean value − true − if the input number field has autofocus enabled false − ...

Read More

HTML DOM Input Number required Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 185 Views

The HTML DOM Input Number required property sets or returns whether a number input field must be filled out before submitting the form. This property corresponds to the HTML required attribute and enables client-side form validation. Syntax Following is the syntax for returning the required property − object.required Following is the syntax for setting the required property − object.required = true | false Property Values The required property accepts the following boolean values − true − The number input field is required and must be filled before ...

Read More
Showing 1031–1040 of 1,509 articles
« Prev 1 102 103 104 105 106 151 Next »
Advertisements