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 271 of 840
HTML 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 MouseEvent relatedTarget
The HTML DOM MouseEvent relatedTarget property returns the element that the mouse was previously on or is moving to during mouse events. It is primarily used with mouseover and mouseout events to determine which element triggered the event transition. When a mouseover event occurs, relatedTarget refers to the element the mouse came from. When a mouseout event occurs, relatedTarget refers to the element the mouse is moving to. Syntax Following is the syntax to access the relatedTarget property − MouseEventObject.relatedTarget Return Value The relatedTarget property returns an Element object representing the related ...
Read MoreHTML DOM Kbd Object
The HTML DOM Kbd object represents the element in the document. The element is used to define keyboard input and displays text in a monospace font by default, indicating that the text represents user input from a keyboard. Syntax Following is the syntax to create a element using JavaScript − var kbdObject = document.createElement("KBD"); You can also access an existing element using − var kbdObject = document.getElementById("kbdId"); Properties The Kbd object inherits all the standard properties and methods from the HTMLElement interface. Common properties include ...
Read MoreHTML DOM Input Password disabled Property
The HTML DOM Input Password disabled property is used for setting or returning whether the password field is disabled or not. It uses boolean values with true representing the element should be disabled and false otherwise. The disabled property is set to false by default. The disabled element is greyed out by default and is unclickable. Syntax Following is the syntax for setting the disabled property − passwordObject.disabled = true|false; Following is the syntax for getting the disabled property − var isDisabled = passwordObject.disabled; Here, true means the password field ...
Read MoreHTML DOM KeyboardEvent charCode Property
The KeyboardEvent charCode property returns the Unicode character code of the character that was pressed during a keyboard event. It provides a numeric representation of the character, which can be useful for character validation and input processing. Note − The charCode property is deprecated. Use the key property instead for modern applications, as it provides more accurate and readable results. Syntax Following is the syntax for accessing the charCode property − event.charCode Return Value The charCode property returns a number representing the Unicode character code of the pressed key. For non-character keys ...
Read MoreHTML DOM Input Password form Property
The HTML DOM Input Password form property is used for returning the form reference that contains the input password field. If the input password field is outside the form then it will simply return null. This property is read-only. Syntax Following is the syntax for input password form property − passwordObject.form Return Value The form property returns one of the following values − Form object − A reference to the form element that contains the password input field. null − If the password input field is not contained ...
Read MoreHTML DOM KeyboardEvent code Property
The KeyboardEvent code property in HTML DOM returns a string representing the physical key that was pressed during a keyboard event. Unlike the key property which returns the logical key value, the code property represents the actual physical key location on the keyboard, making it useful for game controls and applications that need to detect specific key positions regardless of keyboard layout. Note − The code property is layout-independent, while the key property reflects the actual character typed. Use key for text input and code for physical key detection. Syntax Following is the syntax for accessing the ...
Read MoreHTML DOM Input DatetimeLocal name Property
The HTML DOM Input DatetimeLocal name property gets or sets the value of the name attribute of an element. This property is essential for form submissions, as it determines the field name sent to the server when the form data is submitted. Syntax Following is the syntax to get the name property − inputDatetimeLocalObject.name Following is the syntax to set the name property − inputDatetimeLocalObject.name = "string" Return Value The name property returns a string representing the value of the name attribute. If no name attribute is set, ...
Read MoreHTML DOM Input DatetimeLocal Object
The HTML DOM Input DatetimeLocal Object represents an HTML input element with type="datetime-local". This input type allows users to select both a date and time without timezone information, providing a convenient interface for date-time selection in web forms. The datetime-local input displays a date picker combined with a time picker, making it easier for users to enter precise date and time values. The selected value is stored in the format YYYY-MM-DDTHH:MM. Syntax Following is the syntax for creating an input element with type datetime-local − To create a datetime-local input programmatically using ...
Read MoreHTML DOM Input DatetimeLocal readOnly Property
The HTML DOM Input DatetimeLocal readOnly property sets or returns whether a datetime-local input field can be modified by the user. When set to true, the input field becomes read-only and cannot be edited, though it remains focusable and its value can still be selected and copied. Syntax Following is the syntax for getting the readOnly property − inputDatetimeLocalObject.readOnly Following is the syntax for setting the readOnly property − inputDatetimeLocalObject.readOnly = booleanValue Parameters The booleanValue parameter accepts the following values − Value Description ...
Read More