Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Keygen type property

Keygen type property

Keygen Object Reference Keygen Object

Example

Return the type of the keygen field in the form element:

var x = document.getElementById("myKeygen").type;

x Output result:

keygen

Try it »


Definition and Usage

The type property returns the field type of the form element.

For the keygen field, the property always returns "keygen".

Note: This property is read-only.


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

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


Syntax

keygenObject

.type

Technical Details

Return value: String, representing the type of the keygen field in the form element.

Keygen Object Reference Keygen Object