HTML DOM Keygen Object
Keygen Object
The Keygen object represents the keygen field of 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.
In each HTML document,
You can search for the keygen field through the elements[] array of the form, or use document.getElementById().
Deprecated.: This feature has been removed from the Web standard.
Keygen Object Properties
= New attribute in HTML5.
| property | Description |
|---|---|
| autofocus | Sets or returns whether it automatically gets 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 containing 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 the type of form element that the keygen field is. |
Standard properties and events
The keygen object also supports the standard property and Events.
Related pages
HTML Reference Manual: HTML