Keygen keytype property
Example
Return the value of the keytype attribute of the keygen field:
var x = document.getElementById("myKeygen").keytype;
x Output result:
rsa
Try it »
Definition and Usage
The ketype property sets or returns the value of the keytype attribute of the keygen field.
The keytype property describes the type of key used.
Browser support

All major browsers support the disabled property, except Internet Explorer and Safari.
Syntax
Return the keytype property:
keygenObject
.keytype
Set the keytype property:
keygenObject
.keytype="rsa|dsa|ec"
Attribute values
| Value | Description |
|---|---|
| rsa | Default. Specifies an RSA encryption algorithm. |
| dsa | Specifies a DSA encryption algorithm. |
| ec | Specifies an EC encryption algorithm. |
Technical description
| Return value: | String, representing the type of key. |
|---|
Related pages
HTML Reference Manual: HTML
Keygen Object