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 on Trending Technologies
Technical articles with clear explanations and examples
HTML DOM Input URL placeholder Property
The HTML DOM Input URL placeholder property sets or returns a string that provides hints to users about the expected format of the URL input field. The placeholder text appears as grayed-out text inside the input field and disappears when the user starts typing. Syntax Following is the syntax for getting the placeholder value − inputURLObject.placeholder Following is the syntax for setting the placeholder value − inputURLObject.placeholder = stringValue Parameters stringValue − A string that specifies the placeholder text to display in the URL input field. This should ...
Read MoreHTML DOM Anchor rel Property
The HTML DOM Anchor rel property returns or sets the rel attribute of an anchor element. The rel attribute specifies the relationship between the current document and the linked document, providing semantic meaning to links for browsers, search engines, and assistive technologies. Syntax Following is the syntax to return the rel property − anchorObject.rel Following is the syntax to set the rel property − anchorObject.rel = "value" Parameters The value parameter accepts a string containing one or more space-separated link types. Common values include − nofollow − ...
Read MoreHTML DOM Input Reset name property
The HTML DOM Input Reset name property is used for setting or returning the value of the name attribute of a reset button. The name attribute identifies form data when submitted to the server, allowing the server to distinguish between different form elements. Syntax Following is the syntax for setting the name property − resetObject.name = name Following is the syntax for getting the name property − var name = resetObject.name Parameters name − A string that specifies the name of the reset button. This value is used to ...
Read MoreHTML DOM Input URL readOnly Property
The HTML DOM Input URL readOnly property sets or returns whether a URL input field can be modified by the user. When set to true, the input becomes read-only and cannot be edited, though its value can still be accessed and copied programmatically. Syntax Following is the syntax for getting the readOnly property value − inputURLObject.readOnly Following is the syntax for setting the readOnly property − inputURLObject.readOnly = booleanValue Parameters The booleanValue parameter can be one of the following − Value Description ...
Read MoreHTML 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 More