Front End Technology Articles

Page 57 of 652

HTML DOM Table deleteTHead() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 142 Views

The HTML DOM Table deleteTHead() method removes the element and its content from a table. This method is useful for dynamically manipulating table headers in web applications. Syntax Following is the syntax for the deleteTHead() method − table.deleteTHead() Parameters This method does not accept any parameters. Return Value The method returns undefined. It simply removes the element from the table if it exists. Example Following example demonstrates how to use the deleteTHead() method to remove a table header − ...

Read More

HTML DOM TableHeader abbr Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 97 Views

The HTML DOM TableHeader abbr property sets or returns the value of the abbr attribute of a table header cell ( element). The abbr attribute provides a short abbreviation or description for the header cell content, which is helpful for screen readers and accessibility tools. Syntax Following is the syntax for getting the abbr value − object.abbr Following is the syntax for setting the abbr value − object.abbr = "text" Parameters text − A string value that specifies the abbreviation or short description for the table header cell. ...

Read More

HTML DOM Textarea cols Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 165 Views

The HTML DOM Textarea cols property gets and sets the value of the cols attribute of a textarea element. The cols attribute specifies the visible width of a textarea in average character widths. The cols property is useful for dynamically adjusting textarea dimensions through JavaScript, allowing you to change the visual width of text areas based on user interactions or content requirements. Syntax Following is the syntax to return the cols value − textareaObject.cols Following is the syntax to set the cols value − textareaObject.cols = number Here, number ...

Read More

HTML DOM Textarea disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 204 Views

The HTML DOM Textarea disabled property is used to get or set whether a textarea element is disabled. When disabled, the textarea cannot receive user input and appears grayed out to indicate its inactive state. Syntax Following is the syntax for returning the disabled status − object.disabled Following is the syntax for setting the disabled status − object.disabled = true | false Return Value The property returns a Boolean value − true − The textarea is disabled false − The textarea is enabled (default) Example ...

Read More

HTML DOM Textarea name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 178 Views

The HTML DOM Textarea name property returns or sets the value of the name attribute of a textarea element. The name attribute is used to identify the textarea when form data is submitted to the server. Syntax Following is the syntax for returning the name property − textareaObject.name Following is the syntax for setting the name property − textareaObject.name = "nameValue" Return Value The property returns a string representing the name attribute of the textarea element. If no name attribute is set, it returns an empty string. Getting ...

Read More

HTML DOM Textarea readOnly Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 280 Views

The HTML DOM Textarea readOnly property sets or returns whether a textarea element is read-only. When set to true, users cannot modify the textarea content, but they can still select and copy the text. This property is useful for displaying non-editable content in textarea format while preserving the element's visual appearance. Syntax Following is the syntax for getting the readOnly property − textareaObject.readOnly Following is the syntax for setting the readOnly property − textareaObject.readOnly = true | false Return Value The property returns a boolean value − ...

Read More

HTML DOM Textarea form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 255 Views

The HTML DOM Textarea form property is a read-only property that returns a reference to the form element that contains the textarea. If the textarea is not enclosed within a form, this property returns null. Syntax Following is the syntax for the textarea form property − textareaObject.form Return Value The property returns a reference to the form element that contains the textarea, or null if the textarea is not inside a form. Example − Getting Form Reference Following example demonstrates how to get the form reference of a textarea element − ...

Read More

HTML DOM Textarea required Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 186 Views

The HTML DOM Textarea required property sets or returns whether a textarea field must be filled out before submitting a form. When set to true, the textarea becomes a mandatory field, and the browser will prevent form submission if it's empty. Syntax Following is the syntax for returning the required property − textareaObject.required Following is the syntax for setting the required property − textareaObject.required = true | false Property Values The required property accepts the following values − true − The textarea field is required and must ...

Read More

HTML DOM Textarea maxLength Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 257 Views

The HTML DOM Textarea maxLength property allows you to get or set the maximum number of characters that can be entered in a textarea element. This property corresponds to the maxlength attribute in HTML and helps control user input length. Syntax Following is the syntax to return the maxLength value − object.maxLength Following is the syntax to set the maxLength value − object.maxLength = number Here, object refers to the textarea element, and number is a positive integer representing the maximum allowed characters. Return Value The maxLength property ...

Read More

HTML DOM Textarea select() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 211 Views

The HTML DOM Textarea select() Method selects all the content within a textarea element programmatically. This method is commonly used to highlight text for copying or to provide a convenient way for users to select all text at once. Syntax Following is the syntax for the textarea select() method − textareaObject.select() Parameters The select() method does not take any parameters. Return Value The select() method does not return any value. It simply selects all the text content within the textarea element. Example − Basic Textarea Selection Following example demonstrates ...

Read More
Showing 561–570 of 6,519 articles
« Prev 1 55 56 57 58 59 652 Next »
Advertisements