HTML Element: <keygen>
[this page | pdf | back links]
The
HTML <keygen> element indicates a
key-pair generator field (for forms). It is positioned within a form element. When the
form is submitted, the private key is stored locally and the public key (of the
key-pair) is sent to the server.
The attributes it can take
(other than HTML
global attributes and HTML event attributes)
include:
Attribute
|
Description
|
More
|
autofocus
|
Specifies whether
element should automatically get focus when page loads
|
Here
|
challenge
|
Indicates value of
element should be challenged when submitted
|
Here
|
disabled
|
Specified element(s) to
be disabled
|
Here
|
form
|
Name of the form that
element belongs to
|
Here
|
keytype
|
Specifies security algorithm
of key
|
Here
|
name
|
Name of element
|
Here
|
Note: it appears likely
that <keygen>
elements will be dropped from future versions of HTML so it may be desirable
not to use <keygen>
elements.
To
create or access such an element in JavaScript
see here. The
corresponding HTML DOM
object supports standard
DOM properties and methods, and additional properties with the same name and
meaning as the attributes of the underlying HTML element referred to above. It
also supports the following additional properties:
Property
|
Description
|
More
|
type
|
Returns type of form
element in which the keygen field appears
|
Here
|
The default style
applicable to this element is shown here.
NAVIGATION LINKS
Contents | Prev | Next | HTML Elements