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
Front End Technology Articles
Page 56 of 652
HTML DOM Input Password type property
The HTML DOM Input password type property is associated with input elements that have type="password". This property returns the string "password" when accessed on a password input field. It is a read-only property that identifies the input type. Syntax Following is the syntax for accessing the password type property − passwordObject.type Return Value The type property returns a string value "password" for input elements with type="password". Example − Getting Input Type Following example demonstrates how to retrieve the type of a password input field − ...
Read MoreHTML DOM Input Radio type property
The HTML DOM Input Radio type property returns the type attribute value of an input radio element. Since this property is associated with radio input elements, it always returns "radio" as a string value. Syntax Following is the syntax for accessing the radio type property − radioObject.type Return Value The type property returns a string representing the type of the input element. For radio buttons, this will always be "radio". Example Following example demonstrates how to get the type property of a radio input element − ...
Read MoreHTML DOM Input Range form property
The HTML DOM Input Range form property returns a reference to the form element that contains the input range slider. If the range slider is not contained within a form, it returns null. This property is read-only and provides a way to access the parent form from a range input element. Syntax Following is the syntax for the input range form property − rangeObject.form Return Value The form property returns − A reference to the form element that contains the input range slider null if the range input is not inside ...
Read MoreHTML DOM Input Range stepDown() method
The HTML DOM Input Range stepDown() method is used to decrement the value of a range slider by a specified amount. If no parameter is provided, it decrements by 1. When the step attribute is defined on the range input, the stepDown() method decrements in multiples of that step value. Syntax Following is the syntax for the Range stepDown() method − rangeObject.stepDown(number) Parameters The method accepts the following parameter − number − An optional numeric parameter specifying how many steps to decrement. If omitted, defaults to 1. How It ...
Read MoreHTML DOM Input Range type property
The HTML DOM Input Range type property is associated with input elements having type="range". This property returns the string "range" for range input elements, confirming their input type programmatically. The range input type creates a slider control that allows users to select a numeric value within a specified range. The type property helps identify and validate that an input element is indeed a range slider. Syntax Following is the syntax for accessing the type property of a range input element − rangeObject.type Return Value The type property returns a string value "range" ...
Read MoreHTML min Attribute
The min attribute in HTML defines the minimum value of the range for the element. The element represents a scalar value within a known range or a fractional value, such as disk usage, temperature readings, or progress indicators. Syntax Following is the syntax for the min attribute − Where number is a floating-point value that sets the lower bound of the range. The min value must be less than the max value, and the default value is 0 if not specified. Parameters The min attribute accepts the following parameter ...
Read MoreHTML DOM Anchor hostname Property
The HTML DOM Anchor hostname property returns or sets the hostname portion of a URL. The hostname is the domain name part of the URL, excluding the protocol, port number, path, and hash fragments. Syntax Following is the syntax to return the hostname property − anchorObj.hostname Following is the syntax to set the hostname property − anchorObj.hostname = hostname Here, hostname is a string representing the domain name of the URL. Return Value The hostname property returns a string containing the hostname of the URL. For example, if ...
Read MoreHTML DOM Table createTFoot() Method
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 MoreHTML DOM Table deleteCaption() Method
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 MoreHTML DOM Table deleteTFoot() Method
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