AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 256 of 840

HTML DOM Table createTFoot() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 175 Views

The HTML DOM table createTFoot() method generates an empty element and adds it to the table. If a element already exists in the table, this method returns the existing one instead of creating a new one. Syntax Following is the syntax for the createTFoot() method − tableObject.createTFoot() Return Value The method returns a element. If the table already contains a element, it returns the existing one; otherwise, it creates and returns a new element. Example − Creating a Table Footer Following example demonstrates how to use ...

Read More

HTML DOM Video loop Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 197 Views

The HTML DOM Video loop property controls whether a video element will automatically restart from the beginning when it reaches the end. This property returns a boolean value and can be set to true or false. Syntax Following is the syntax for getting the loop property value − mediaObject.loop Following is the syntax for setting the loop property − mediaObject.loop = booleanValue Parameters The booleanValue can be one of the following − Value Description true The video will automatically restart from ...

Read More

How to update a MySQL column by subtracting a value with some conditions?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 1K+ Views

Updating a MySQL column by subtracting a value with conditions is a common database operation. You can use the UPDATE statement with a WHERE clause to modify specific rows based on criteria while performing arithmetic operations on column values. Syntax Following is the basic syntax for updating a column by subtracting a value with conditions − UPDATE table_name SET column_name = column_name - value WHERE condition; Where − table_name − The name of the table to update column_name − The column to modify value − The number to subtract from the ...

Read More

HTML DOM Video muted Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 293 Views

The HTML DOM Video muted property controls whether the video's audio is silenced. This property returns a boolean value indicating the current mute state and allows you to programmatically mute or unmute video elements. Syntax Following is the syntax for getting the muted property − videoObject.muted Following is the syntax for setting the muted property − videoObject.muted = booleanValue Parameters The booleanValue can be one of the following values − Value Description true The video audio is muted (no sound will ...

Read More

HTML DOM Table insertRow() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 296 Views

The HTML DOM table insertRow() method creates an empty element and inserts it at a specified position in a table. This method is useful for dynamically adding rows to existing tables without rebuilding the entire table structure. Syntax Following is the syntax for the insertRow() method − table.insertRow(index) Parameters The insertRow() method accepts the following parameter − index (optional) − A number specifying the position where the new row should be inserted. If omitted or set to -1, the row is appended at the end of the table. ...

Read More

HTML DOM Table deleteCaption() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 125 Views

The HTML DOM table deleteCaption() method removes the first element from a table in an HTML document. This method is useful when you need to dynamically remove table captions after the page has loaded. Syntax Following is the syntax for the deleteCaption() method − tableObject.deleteCaption() Parameters This method does not accept any parameters. Return Value The method returns undefined. It simply removes the caption element if it exists, or does nothing if no caption is present. How It Works The deleteCaption() method searches for the first element ...

Read More

HTML DOM Table deleteTFoot() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 121 Views

The HTML DOM table deleteTFoot() method removes the element from a table in an HTML document. This method provides a quick way to dynamically remove table footers without manually selecting and deleting the footer element. Syntax Following is the syntax for the deleteTFoot() method − table.deleteTFoot() Parameters This method does not accept any parameters. Return Value This method returns undefined. If no element exists in the table, the method does nothing and no error is thrown. Example − Basic Usage Following example demonstrates how to use the ...

Read More

HTML DOM Video networkState Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 180 Views

The HTML DOM Video networkState property returns a numeric value that represents the current network state of a video element. This read-only property helps developers understand whether the video is loading, idle, or encountering network issues. Syntax Following is the syntax to get the networkState property − videoElement.networkState Return Value The networkState property returns one of the following numeric values − 0 (NETWORK_EMPTY) − The video element has not yet been initialized. No network activity has started. 1 (NETWORK_IDLE) − The video element is active and has selected a resource, but ...

Read More

HTML DOM Video Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 353 Views

The HTML DOM Video Object represents the element in the Document Object Model. It provides a JavaScript interface to control video playback, access video properties, and manage video-related events programmatically. Creating a Video Object You can access an existing video element or create a new one using JavaScript − // Access existing video element var videoObject = document.getElementById("myVideo"); // Create new video element var videoObject = document.createElement("VIDEO"); Video Object Properties The Video Object provides numerous properties to control and monitor video playback. Here are the key properties − ...

Read More

HTML DOM Input Time type Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 286 Views

The HTML DOM Input Time type property returns or sets the type attribute of an HTML input element that accepts time values. This property allows you to dynamically change or retrieve the input type using JavaScript, providing flexibility in form handling and validation. Syntax Following is the syntax for returning the type value − inputTimeObject.type Following is the syntax for setting the type value − inputTimeObject.type = stringValue Parameters The stringValue parameter represents the type of input element. For time inputs, common values include − ...

Read More
Showing 2551–2560 of 8,392 articles
« Prev 1 254 255 256 257 258 840 Next »
Advertisements