Web Development Articles

Page 111 of 801

HTML DOM Input Date value Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

The HTML DOM Input Date value property allows you to get or set the value of an element. The value is returned as a string in YYYY-MM-DD format, which is the ISO 8601 date format standard. Syntax Following is the syntax to get the value − inputDateObject.value Following is the syntax to set the value − inputDateObject.value = 'YYYY-MM-DD' Return Value The value property returns a string representing the selected date in YYYY-MM-DD format. If no date is selected, it returns an empty string. Getting the Date ...

Read More

HTML DOM Input Datetime autofocus Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 194 Views

The HTML DOM Input Datetime autofocus property sets or returns whether a datetime input field should automatically receive focus when the page loads. This property corresponds to the autofocus attribute in HTML. Syntax Following is the syntax for getting the autofocus property value − inputDatetimeObject.autofocus Following is the syntax for setting the autofocus property − inputDatetimeObject.autofocus = booleanValue Return Value The property returns a boolean value indicating whether the datetime input has autofocus enabled − Value Description true The input field ...

Read More

HTML DOM Input Datetime disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 222 Views

The HTML DOM Input Datetime disabled property sets or returns whether an Input Datetime field is enabled or disabled. When set to true, the input field becomes non-interactive and appears grayed out, preventing user input. Syntax Following is the syntax for returning the disabled status − inputDatetimeObject.disabled Following is the syntax for setting the disabled property − inputDatetimeObject.disabled = booleanValue Parameters The booleanValue parameter accepts the following values − Value Description true Disables the input datetime field, making it non-interactive and ...

Read More

HTML DOM Input Datetime form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

The HTML DOM Input Datetime form property returns a reference to the form element that contains the input datetime field. This property is read-only and provides access to the parent form object, allowing you to interact with form properties and methods programmatically. Syntax Following is the syntax for accessing the form property − inputDatetimeObject.form Return Value The property returns a reference to the HTMLFormElement that contains the input datetime element. If the input is not inside a form, it returns null. Example − Getting Form Reference Following example demonstrates how to ...

Read More

HTML DOM Input Datetime max Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 211 Views

The HTML DOM Input Datetime max property returns or sets the value of the max attribute of an HTML datetime input element. This property defines the maximum date and time value that a user can enter in the datetime field. Syntax Following is the syntax for returning the max property − inputDatetimeObject.max Following is the syntax for setting the max property − inputDatetimeObject.max = "YYYY-MM-DDThh:mm:ssTZD" Property Value The max property accepts a string value representing a date and time in ISO 8601 format. The format YYYY-MM-DDThh:mm:ssTZD consists of the ...

Read More

HTML DOM Input Datetime min Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 196 Views

The HTML DOM Input Datetime min property sets or returns the minimum value allowed for a datetime input field. This property corresponds to the min attribute in HTML and helps restrict users from selecting dates and times earlier than the specified minimum value. Syntax Following is the syntax to return the min property value − inputDatetimeObject.min Following is the syntax to set the min property value − inputDatetimeObject.min = "YYYY-MM-DDThh:mm:ssTZD" Property Value The min property accepts a string value in the format YYYY-MM-DDThh:mm:ssTZD representing a valid datetime. Following table ...

Read More

HTML DOM Input Datetime name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 162 Views

The HTML DOM Input Datetime name property sets or returns the value of the name attribute of an input datetime element. The name attribute is used to reference form data after a form is submitted and identifies the input field in JavaScript. Note: The HTML5 input type="datetime" has been deprecated. Modern browsers use datetime-local instead, but this property works similarly for both types. Syntax Following is the syntax for returning the name value − inputDatetimeObject.name Following is the syntax for setting the name value − inputDatetimeObject.name = "string" Return ...

Read More

HTML DOM Input Datetime readOnly Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 127 Views

The HTML DOM Input Datetime readOnly property is used to set or return whether a datetime input field can be modified by the user. When set to true, the input becomes read-only and cannot be edited, while false allows normal user interaction. Syntax Following is the syntax for returning the readOnly property value − inputDatetimeObject.readOnly Following is the syntax for setting the readOnly property − inputDatetimeObject.readOnly = booleanValue Parameters The booleanValue parameter accepts the following values − Value Description true Makes ...

Read More

HTML DOM Input Datetime required Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 177 Views

The HTML DOM Input Datetime required property determines whether a datetime input field must be filled before form submission. When set to true, the browser prevents form submission if the datetime field is empty and displays a validation message. Syntax Following is the syntax for getting the required property − inputDatetimeObject.required Following is the syntax for setting the required property − inputDatetimeObject.required = booleanValue Parameters The required property accepts a boolean value − Value Description true Makes the datetime field mandatory ...

Read More

HTML DOM Input Datetime value Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 217 Views

The HTML DOM Input Datetime value property allows you to get or set the value of a datetime input field. This property returns the current value as a string in ISO 8601 format or sets a new datetime value programmatically. Syntax Following is the syntax for getting the datetime value − inputDatetimeObject.value Following is the syntax for setting the datetime value − inputDatetimeObject.value = "YYYY-MM-DDTHH:MM:SSZ" The datetime value must be in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ where T separates date and time, and Z indicates UTC timezone. Return Value ...

Read More
Showing 1101–1110 of 8,010 articles
« Prev 1 109 110 111 112 113 801 Next »
Advertisements