Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Keygen keytype property

Keygen keytype property

Keygen Object Reference Keygen Object

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

Internet Explorer Firefox Opera Google Chrome Safari

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 keytype property


Keygen Object Reference Keygen Object