AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 271 of 840

HTML min Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 201 Views

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 More

HTML DOM MouseEvent relatedTarget

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 156 Views

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 More

HTML DOM Kbd Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 160 Views

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 More

HTML DOM Input Password disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 228 Views

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 More

HTML DOM KeyboardEvent charCode Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 169 Views

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 More

HTML DOM Input Password form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 226 Views

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 More

HTML DOM KeyboardEvent code Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 148 Views

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 More

HTML DOM Input DatetimeLocal name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 131 Views

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 More

HTML DOM Input DatetimeLocal Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 152 Views

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 More

HTML DOM Input DatetimeLocal readOnly Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 243 Views

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
Showing 2701–2710 of 8,392 articles
« Prev 1 269 270 271 272 273 840 Next »
Advertisements