YouTip LogoYouTip

Prop Keygen Keytype

Keygen keytype Property |

-- Learning is not just about technology, but also about dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

Keygen keytype Property

Keygen Object Reference Keygen Object

Example

Return the keytype attribute value of the keygen field:

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

x output:

rsa

Try it Β»


Definition and Usage

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

The keytype attribute describes the type of key used.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The keytype property is supported in all major browsers, except Internet Explorer and Safari.


Syntax

Return the keytype property:

keygenObject.keytype

Set the keytype property:

keygenObject.keytype="rsa|dsa|ec"

Property 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 key type.

Related Pages

HTML Reference: HTML <keygen> keytype Attribute


Keygen Object Reference Keygen Object

← Prop Keygen NameProp Keygen Form β†’