AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 274 of 840

HTML DOM Superscript Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 191 Views

The HTML DOM Superscript Object represents the element in an HTML document. The superscript element displays text as superscript, which appears half a character above the normal line and is often rendered in a smaller font size. This is commonly used for mathematical exponents, footnote references, and ordinal numbers. Syntax Following is the syntax to create a superscript object using JavaScript − document.createElement("SUP"); Properties The Superscript object inherits all properties from the generic HTMLElement object, including − innerHTML − Gets or sets the HTML content inside the superscript element. textContent ...

Read More

HTML DOM Table Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 844 Views

The HTML DOM Table Object represents the element in HTML. It provides properties and methods to dynamically create, modify, and manipulate table elements using JavaScript. This object allows developers to programmatically interact with tables without directly modifying HTML markup. Syntax To create a new table object using JavaScript − document.createElement("TABLE"); To access an existing table element − document.getElementById("tableId"); document.getElementsByTagName("table")[0]; Properties The DOM Table Object provides the following key properties − Property Description caption Returns or sets the element of ...

Read More

HTML DOM Input Email type Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 166 Views

The HTML DOM Input Email type property returns or sets the type attribute of an input element that is currently of type "email". This property allows you to dynamically change the input type from email to other supported input types using JavaScript. Syntax Following is the syntax for returning the type value − inputEmailObject.type Following is the syntax for setting the type value − inputEmailObject.type = stringValue Return Value The property returns a string representing the current type of the input element. For an email input, it returns "email". ...

Read More

HTML DOM Input Email value Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 201 Views

The HTML DOM Input Email value property allows you to get or set the value of an email input field. This property returns a string representing the current email address in the input field, and you can also assign a new email string to change the field's value programmatically. Syntax Following is the syntax for getting the email input value − inputEmailObject.value Following is the syntax for setting the email input value − inputEmailObject.value = "emailString" Return Value The value property returns a string that represents the current value ...

Read More

HTML DOM Input FileUpload autofocus Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 162 Views

The HTML DOM Input FileUpload autofocus property controls whether a file upload input field automatically receives focus when the page loads. This property corresponds to the HTML autofocus attribute and can be used to programmatically set or check the autofocus state of file input elements. Syntax Following is the syntax for getting the autofocus property value − inputFileUploadObject.autofocus Following is the syntax for setting the autofocus property − inputFileUploadObject.autofocus = booleanValue Return Value The autofocus property returns a boolean value indicating whether the file upload input has autofocus enabled ...

Read More

HTML DOM Input Date max Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 201 Views

The HTML DOM Input Date max property is used to set or return the value of the max attribute of an input element with type="date". This property defines the maximum date that users can select in a date picker, helping to create date range restrictions in forms. Syntax Following is the syntax for returning the max value − inputDateObject.max Following is the syntax for setting the max value − inputDateObject.max = "YYYY-MM-DD" Parameters The max property accepts a string value in the format YYYY-MM-DD representing the maximum selectable date. ...

Read More

HTML DOM Input Date min Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 210 Views

The HTML DOM Input Date min property is used to get or set the minimum allowable date for an HTML input element of type "date". This property corresponds to the min attribute in the HTML and restricts users from selecting dates earlier than the specified minimum date. Syntax Following is the syntax for getting the min property − inputDateObject.min Following is the syntax for setting the min property − inputDateObject.min = "YYYY-MM-DD" Parameters The min property accepts a string value in the format YYYY-MM-DD, where each component represents − ...

Read More

HTML DOM Input Date Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 271 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 245 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 required Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 217 Views

The HTML DOM Input Date required property determines whether a date input field must be filled before the form can be submitted. This property returns a boolean value indicating the required state and can also be used to set the required attribute dynamically. Syntax Following is the syntax for getting the required property value − inputDateObject.required Following is the syntax for setting the required property − inputDateObject.required = booleanValue Parameters The booleanValue parameter can be one of the following values − Value Description ...

Read More
Showing 2731–2740 of 8,392 articles
« Prev 1 272 273 274 275 276 840 Next »
Advertisements