AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 260 of 840

HTML DOM Anchor search Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 193 Views

The HTML DOM Anchor search property returns or sets the query string part of an anchor element's href attribute. The query string is the portion of a URL that comes after the question mark (?) and contains parameters passed to the server, typically used in GET requests. Syntax Following is the syntax for returning the search property − anchorObject.search Following is the syntax for setting the search property − anchorObject.search = querystring Parameters querystring − A string representing the query string portion of the URL, including the ...

Read More

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 Video seeking Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 183 Views

The HTML DOM Video seeking property returns a boolean value indicating whether the user is currently seeking (moving the playback position) in the video. It returns true during the seeking process and false when not seeking. Syntax Following is the syntax for accessing the seeking property − videoObject.seeking Return Value The seeking property returns a boolean value − true − When the user is actively seeking (dragging the progress bar or using seek controls) false − When the video is playing normally or paused without seeking How It Works ...

Read More

How to create a download link with HTML?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 904 Views

To create a download link with HTML, you use the tag with the download attribute. This attribute forces the browser to download the linked file instead of navigating to it. The download attribute works for same-origin URLs and can specify a custom filename for the downloaded file. Syntax Following is the basic syntax for creating a download link − Download Text To specify a custom filename for the download − Download Text Basic Download Link The simplest download link uses just the download attribute without a value. The ...

Read More

HTML DOM Anchor target Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 394 Views

The HTML DOM anchor target property specifies where to open the linked document when a user clicks on an anchor element. This property corresponds to the target attribute in HTML and can be accessed or modified using JavaScript. The target property can have the following values − _blank − Opens the linked document in a new window or tab. _self − Opens the linked document in the same frame (this is the default). _parent − Opens the linked document in the parent frame. _top − Opens the linked document in the full body of the window. framename ...

Read More

HTML DOM Input Reset object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 246 Views

The HTML DOM Input Reset object is associated with the element with type="reset". We can create and access an input element with type reset by using the createElement() and getElementById() methods respectively. The Reset button automatically clears all form fields to their initial values when clicked, making it useful for forms where users need to start over. Syntax Following is the syntax to create a reset input element − Following is the syntax to access a reset input element using JavaScript − var resetButton = document.getElementById("resetId"); Properties ...

Read More

HTML DOM Table deleteRow() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 181 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 Input URL required Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 169 Views

The HTML DOM Input URL required property sets or returns whether a URL input field must be filled out before submitting a form. When set to true, the browser will prevent form submission if the URL field is empty and display a validation message. Syntax Following is the syntax for returning the required property value − inputURLObject.required Following is the syntax for setting the required property − inputURLObject.required = booleanValue Property Values The booleanValue can be one of the following − Value Description ...

Read More

HTML DOM Table rows Collection

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 438 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 Video src Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 171 Views

The HTML DOM Video src property returns or sets the URL of the video file for a video element. This property corresponds to the src attribute of the HTML element and allows you to dynamically change or retrieve the video source using JavaScript. Syntax Following is the syntax for getting the video source − videoObject.src Following is the syntax for setting the video source − videoObject.src = "URL" Parameters URL − A string representing the absolute or relative URL of the video file to be loaded. ...

Read More
Showing 2591–2600 of 8,392 articles
« Prev 1 258 259 260 261 262 840 Next »
Advertisements