Front End Technology Articles

Page 16 of 652

HTML DOM Table deleteRow() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

The HTML DOM table deleteRow() method removes a specific row ( element) from a table. This method is useful for dynamically managing table content in web applications. Syntax Following is the syntax for the deleteRow() method − table.deleteRow(index) Parameters The method accepts one parameter − index − An integer that specifies the position of the row to delete. The index starts from 0. If the index is -1, it deletes the last row. If the index is out of range, an error occurs. Return Value This ...

Read More

HTML DOM Table rows Collection

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 430 Views

The HTML DOM Table rows Collection returns a collection of all elements in a table. This collection provides access to table rows for manipulation, counting, and retrieval operations using JavaScript. Syntax Following is the syntax to access the rows collection − tableObject.rows Where tableObject is a reference to a element obtained through methods like document.getElementById() or document.querySelector(). Properties of rows Collection The rows collection provides the following property to get information about the table rows − Property Description length Returns the number ...

Read More

HTML DOM Table tBodies Collection

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 210 Views

The HTML DOM table tBodies Collection returns a collection of all elements within a specific table element. This collection is live, meaning it automatically updates when elements are added or removed from the table. Syntax Following is the syntax to access the tBodies collection − tableObject.tBodies Where tableObject is a reference to an HTML table element obtained through methods like document.getElementById() or document.querySelector(). Properties The tBodies collection has the following property − Property Description length Returns the number of elements in ...

Read More

HTML DOM Table tHead Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 178 Views

The HTML DOM table tHead property returns the element of a table. This property provides access to the table's header section, allowing developers to manipulate or retrieve the header content programmatically. Syntax Following is the syntax for accessing the tHead property − table.tHead Return Value The tHead property returns − A HTMLTableSectionElement representing the element if it exists. null if the table has no element. Example − Accessing Table Header Following example demonstrates how to use the tHead property to access ...

Read More

HTML DOM TableData colSpan Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 242 Views

The HTML DOM TableData colSpan property returns and modifies the value of the colspan attribute of a table cell ( or ) in an HTML document. This property controls how many columns a cell spans across in a table. Syntax Following is the syntax for returning the colSpan property − object.colSpan Following is the syntax for setting the colSpan property − object.colSpan = number Property Values The colSpan property accepts a numeric value that specifies how many columns the cell should span. The default value is 1, meaning the ...

Read More

HTML DOM TableData headers Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 137 Views

The HTML DOM TableData headers property returns and modifies the value of the headers attribute of a table cell () element. The headers attribute associates data cells with their corresponding header cells, improving table accessibility for screen readers. Syntax Following is the syntax for returning the headers attribute value − object.headers Following is the syntax for setting the headers attribute value − object.headers = "header_ids" Parameters The header_ids parameter is a space-separated list of header cell IDs that describe the current data cell. Each ID should correspond to a ...

Read More

HTML DOM Textarea Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 508 Views

The HTML DOM Textarea Object represents the element in an HTML document. This object provides properties and methods to create, access, and manipulate textarea elements dynamically using JavaScript. The textarea object is commonly used for multi-line text input in forms. Creating a Textarea Object You can create a new textarea element using the document.createElement() method − Syntax document.createElement("TEXTAREA"); Once created, you can set its properties and append it to the DOM to make it visible on the page. Properties of Textarea Object The textarea object provides numerous properties to control ...

Read More

HTML DOM Textarea placeholder Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 241 Views

The HTML DOM Textarea placeholder property is used to get or set the value of the placeholder attribute of a textarea element. The placeholder provides a hint to users about what kind of information is expected in the textarea field. Syntax Following is the syntax for returning the placeholder value − textareaObject.placeholder Following is the syntax for setting the placeholder value − textareaObject.placeholder = "text" Property Value The placeholder property accepts a string value that specifies the short hint displayed in the textarea before the user enters a value. ...

Read More

HTML DOM Textarea wrap Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 237 Views

The HTML DOM Textarea wrap property gets and sets the value of the wrap attribute of a textarea element. This property controls how text wrapping behaves when the form is submitted to the server. Syntax Following is the syntax for getting the wrap property − object.wrap Following is the syntax for setting the wrap property − object.wrap = "soft" | "hard" Property Values The wrap property accepts the following values − soft − The text is wrapped visually but line breaks are not inserted when the ...

Read More

HTML option value Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 471 Views

The HTML option value attribute defines the value that will be sent to the server when a form is submitted. The value attribute specifies what data is transmitted for each option in a select dropdown, which may differ from the visible text displayed to users. Syntax Following is the syntax for the option value attribute − Display Text Where text is the value sent to the server, and Display Text is what users see in the dropdown. How It Works When a user selects an option and submits the form, the browser ...

Read More
Showing 151–160 of 6,519 articles
« Prev 1 14 15 16 17 18 652 Next »
Advertisements