HTML Articles

Page 108 of 151

HTML DOM Input Datetime form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 175 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 207 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 192 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 155 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 119 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 171 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 207 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

HTML DOM Input DatetimeLocal disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 150 Views

The HTML DOM Input DatetimeLocal disabled property sets or returns whether an Input DatetimeLocal field is enabled or disabled. When set to true, the field becomes uneditable and grayed out, preventing user interaction. When set to false, the field becomes interactive and allows users to select date and time values. Syntax Following is the syntax for returning the disabled property − inputDatetimeLocalObject.disabled Following is the syntax for setting the disabled property − inputDatetimeLocalObject.disabled = booleanValue Parameters The disabled property accepts the following boolean values − ...

Read More

HTML DOM Input DatetimeLocal form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 176 Views

The HTML DOM Input DatetimeLocal form property returns a reference to the element that contains the input DatetimeLocal element. This property is read-only and provides access to the parent form object for further manipulation or validation. Syntax Following is the syntax to access the form property − inputDatetimeLocalObject.form Return Value The property returns a reference to the HTMLFormElement object that contains the datetime-local input. If the input is not within a form element, it returns null. Example Let us see an example of Input DatetimeLocal form property − ...

Read More

HTML DOM Input DatetimeLocal min Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 218 Views

The HTML DOM Input DatetimeLocal min property sets or returns the minimum value for a datetime-local input field. This property corresponds to the HTML min attribute and restricts users from selecting dates and times earlier than the specified minimum value. Syntax Following is the syntax for returning the min property − inputDatetimeLocalObject.min Following is the syntax for setting the min property − inputDatetimeLocalObject.min = "YYYY-MM-DDThh:mm:ss" Parameters The min property accepts a string value in the format YYYY-MM-DDThh:mm:ss representing the minimum allowable datetime − Component Description ...

Read More
Showing 1071–1080 of 1,509 articles
« Prev 1 106 107 108 109 110 151 Next »
Advertisements