Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by AmitDiwan
Page 260 of 840
HTML DOM Anchor search Property
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 MoreHTML DOM Table deleteTHead() Method
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 MoreHTML DOM Video seeking Property
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 MoreHow to create a download link with HTML?
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 MoreHTML DOM Anchor target Property
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 MoreHTML DOM Input Reset object
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 MoreHTML DOM Table deleteRow() Method
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 MoreHTML DOM Input URL required Property
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 MoreHTML DOM Table rows Collection
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 MoreHTML DOM Video src Property
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