Easy Tutorial
❮ Dom Obj Button Prop Style Transform ❯

Keygen disabled Attribute

Keygen Object

Example

Check if the keygen field is enabled:

x Output result:


Definition and Usage

The disabled attribute is used to set or return whether the keygen field is enabled.

A disabled element is unusable and un-clickable. Disabled elements are typically rendered in gray by default in browsers.

This attribute reflects the HTML disabled attribute.


Browser Support

All major browsers support the disabled attribute, except Internet Explorer.


Syntax

Return the disabled attribute:

Set the disabled attribute:

Attribute Values

Value Description
true false Describes whether the keygen field is enabled. true - Disables the text field. <br> false - Default. The text field is enabled.

Technical Description

| Return Value: | Boolean, returns true if the keygen field is disabled, otherwise returns false | | --- | --- |


More Examples

Example

Disable a keygen field:

Output result:

Example

Disable and enable a keygen field:


Related Pages

HTML Reference: HTML <keygen> disabled Attribute


Keygen Object

❮ Dom Obj Button Prop Style Transform ❯