Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML DOM Keygen object


May 06, 2021 JavaScript with HTML DOM Reference book


Table of contents


HTML DOM Keygen object


Keygen object

The Keygen object represents the keygen field of the HTML form.

The object provides a secure way to authenticate the user.

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

Each of the labels in the HTML document creates a Keygen object.

You can search for the keygen field through the array of the form,or use document.getElementById().


Keygen object properties

New properties for HTML5.

Attributes describe
autofocus Set or return to the page to load the focus.
challenge Set or return the Challenge property value of the Keygen field.
disabled Set or return to whether to use the keytag field.
form Returns a form that contains the KeyGen field.
keytype Set or return the keyType property value of the KeyGen field.
name Set or return the value of the KeyGen field name property.
type Returns which form element type of the Keygen field.

Standard properties and events

Keygen objects also support standard properties and events.


Related pages

HTML Reference Manual: HTML slt;keygen.gt; Tags