Easy Tutorial
❮ Jsref Tofixed Prop Week Name ❯

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.

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

You can access the keygen field through the form's elements[] array or by using document.getElementById().


Keygen Object Properties

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

Standard Properties and Events

The Keygen object also supports standard properties and events.


Related Pages

HTML Reference: HTML <keygen> Tag

❮ Jsref Tofixed Prop Week Name ❯