HTML DOM KeygenObject


Keygen Object

The Keygen object represents the keygen field in an HTML form.

This object provides a secure way to authenticate users.

When the form is submitted, the private key is stored locally, and the public key is sent to the server.

Each <keygen> tag in an HTML document creates a Keygen object.

You can search for the keygen field through the form's elements[] array, or use document.getElementById().

Deprecated: This feature has been removed from Web standards.


Keygen Object Properties

= New HTML5 attribute.

Attribute Description
autofocus Sets or returns whether to automatically get focus when the page loads.
challenge Sets or returns the value of the challenge attribute of the keygen field.
disabled Sets or returns whether to use the keytag field.
form Returns the form that contains the keygen field.
keytype Sets or returns the value of the keytype attribute of the keygen field.
name Sets or returns the value of the name attribute of the keygen field.
type Returns what type of form element the keygen field is.

Standard Attributes and Events

The keygen object also supports standardattributesandand events.。


Related Pages

HTML Reference Manual:HTML <keygen> Tag

Other Extensions