HTML Articles

Page 99 of 151

HTML DOM Input Date disabled Property

Rama Giri
Rama Giri
Updated on 16-Mar-2026 190 Views

The HTML DOM Input Date disabled property controls whether a date input field is enabled or disabled. When disabled is set to true, the date input becomes unresponsive to user interaction and appears grayed out. This property is useful for conditionally enabling or disabling date selection based on application logic. Syntax Following is the syntax for getting the disabled state − inputDateObject.disabled Following is the syntax for setting the disabled state − inputDateObject.disabled = booleanValue Parameters The disabled property accepts a boolean value − Value ...

Read More

HTML DOM Input Date form Property

Kumar Varma
Kumar Varma
Updated on 16-Mar-2026 161 Views

The Input Date form property returns a reference to the form element that contains the input date field. This property is read-only and provides access to the enclosing form object, allowing you to retrieve form attributes like ID, action, or method through JavaScript. Syntax Following is the syntax for accessing the form property − inputDateObject.form Return Value The form property returns a reference to the form element that contains the input date field. If the input date is not inside a form, it returns null. Example − Getting Form Reference Following ...

Read More

HTML DOM Input Date Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 261 Views

The HTML DOM Input Date Object represents an HTML element with type="date". This object provides a date picker interface that allows users to select a date from a calendar widget, and it offers various properties and methods for programmatic control. Syntax Following is the syntax to create an input date element using JavaScript − var dateObject = document.createElement("input"); dateObject.type = "date"; You can also access an existing input date element − var dateObject = document.getElementById("dateId"); Properties The Input Date Object supports the following properties − ...

Read More

HTML DOM Input Date readOnly Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 238 Views

The HTML DOM Input Date readOnly property is used to control whether a date input field can be modified by the user. When set to true, the date input becomes read-only and users cannot change its value, though it remains focusable and its value is still submitted with forms. Syntax Following is the syntax to get the readOnly property value − inputDateObject.readOnly Following is the syntax to set the readOnly property − inputDateObject.readOnly = booleanValue Property Values The readOnly property accepts the following boolean values − ...

Read More

HTML DOM Input Date step Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 305 Views

The HTML DOM Input Date step property sets or returns the value of the step attribute of a date input field. This property determines the legal day intervals that users can select when opening the date picker calendar. Syntax Following is the syntax for returning the step value − inputDateObject.step Following is the syntax for setting the step value − inputDateObject.step = number Parameters The step property accepts a numeric value that represents the number of days between selectable dates. The default value is 1, meaning all dates are ...

Read More

HTML DOM Select autofocus Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 158 Views

The HTML DOM Select autofocus property sets or returns whether a dropdown list should automatically receive focus when the page loads. This property corresponds to the HTML autofocus attribute and is useful for improving user experience by directing attention to important form elements. Syntax Following is the syntax for returning the autofocus property − selectObject.autofocus Following is the syntax for setting the autofocus property − selectObject.autofocus = true | false Property Values The autofocus property accepts the following values − true − The dropdown list will automatically ...

Read More

HTML DOM Select selectedIndex Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 230 Views

The HTML DOM select selectedIndex property returns and modifies the index of the selected option in a dropdown list. The index is zero-based, meaning the first option has an index of 0, the second option has an index of 1, and so on. Syntax Following is the syntax for returning the selectedIndex − object.selectedIndex Following is the syntax for modifying the selectedIndex − object.selectedIndex = number Return Value The selectedIndex property returns an integer representing the index of the selected option. If no option is selected, it returns -1. ...

Read More

HTML DOM Progress Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 243 Views

The DOM Progress Object represents the element in an HTML document. This object provides properties and methods to dynamically create and manipulate progress bars using JavaScript, allowing you to build interactive progress indicators for file uploads, form submissions, or loading states. Syntax Following is the syntax to create a progress object using JavaScript − document.createElement("PROGRESS"); You can also access an existing progress element using − document.getElementById("progressId"); document.getElementsByTagName("progress")[0]; Properties Following are the key properties of the Progress object − Property Description ...

Read More

HTML DOM Samp Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 195 Views

The HTML DOM Samp Object represents the HTML element, which is used to display sample output from computer programs, scripts, or systems. The element typically renders text in a monospace font to distinguish it from regular content. The DOM Samp Object provides access to all standard HTML element properties and methods, allowing you to manipulate elements dynamically with JavaScript. Syntax To create a new Samp object using JavaScript − document.createElement("SAMP"); To access an existing element − document.getElementById("sampId"); document.getElementsByTagName("samp")[0]; Creating a Samp Object You can ...

Read More

HTML DOM Parameter Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 195 Views

The HTML DOM Parameter Object represents the element in an HTML document. The element defines parameters for elements, typically used for embedding multimedia content like audio, video, or plugins. Syntax Following is the syntax to create a param object using JavaScript − document.createElement("PARAM"); Following is the HTML syntax for the element − Properties of Parameter Object The Parameter Object has two main properties that correspond to its HTML attributes − Property Description ...

Read More
Showing 981–990 of 1,509 articles
« Prev 1 97 98 99 100 101 151 Next »
Advertisements