Keygen type Property
Example
Return which type of form element the keygen field is:
var x = document.getElementById("myKeygen").type;
The result of x will be:
keygen
Try it Yourself »
Definition and Usage
The type property returns which type of form element a keygen field is.
For a keygen field, this property will always return "keygen".
Note: This property is read only.
Browser Support
The type property is supported in all major browsers, except Internet Explorer.
Syntax
keygenObject.type
Technical Details
Return Value: | A String, representing the type of form element the keygen field is |
---|
