Keygen keytypeAttribute

Keygen 对象参考手册Keygen Object

Instance

Return the value of the keytype attribute of the keygen field:

var x = document.getElementById("myKeygen").keytype;

xOutput:

rsa

Try it yourself »

Definition and Usage

The ketype attribute is used to set or return the value of the keytype attribute of the keygen field.

The keytype attribute specifies the type of key used.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the disabled attribute, except Internet Explorer and Safari.


Syntax

Return the keytype attribute:

keygenObject.keytype

Set the keytype attribute:

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 Details

Return value: A string, representing the type of key.


Related Pages

HTML Reference Manual:HTML <keygen> keytype Attribute


Keygen 对象参考手册Keygen Object

Other Extensions