HTMLKeygenElement : HTMLElement
Return to: HTML DOM Level 5 index

Represents a keypair generator control.

Platform Support

Mozilla Chrome Safari Opera IE Netscape
0.1+ 1.2+ 1.2+ 9.0+ no no

Constructors

Constructor Action Mozilla Chrome Safari Opera IE Netscape
HTMLKeygenElement Constructor() : HTMLKeygenElement
Creates an instance of the HTMLKeygenElement.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no

HTMLKeygenElement() : HTMLKeygenElement

Creates an instance of the HTMLKeygenElement.

Returns
HTMLKeygenElement

Visibility
internal

Properties

Property Action Mozilla Chrome Safari Opera IE Netscape
autofocus : Boolean
Allows the user to indicate that a control is to be focused as soon as the page is loaded, allowing the user to just start typing without having to manually focus the main control.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

challenge : String
Specifies the challenge attribute for the keygen.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

disabled : Boolean
Specifies whether the element is disabled.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

form : HTMLFormElement
Specifies the associated form element.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

keytype : String
An enumerated attribute that specifies the keytype.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

name : String
Specifies the name of the keygen.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

willValidate : Boolean
Specifies whether the element will be validated when the form is submitted.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

validity : ValidityState
Specifies the validity of the element.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

Specifies a suitably localized message that the user agent would show the user if this were the only form control with a validity constraint problem.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no
Availability

WhatWG

Inherited Functions

Method Action Mozilla Chrome Safari Opera IE Netscape
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the Element nodes with the specified classNames.
Show Details 1.9+ 5.0+ 3.1+ 9.51+ no no

Parameters
String classNames (one-or-more)A string representing the class name(s) of the elements to return. Multiple class names should be separated by spaces.

Returns
NodeList

Using getElementsByClassName

                        	                    document.getElementById("useCases").getElementsByClassName("question");

Would return a NodeList of all elements inside the element with the id "useCases" to which the class "question" applies.

                        	                    document.getElementById("useCases").getElementsByClassName("question issue");

Would return a NodeList of all elements inside the element with the id "useCases" to which both the classes "question" and "issue" apply.

Remarks

Returns a list of child elements to which the specified className applies. The returned NodeList is sorted in tree order (the order the elements were found during a depth-first preorder traversal through the node tree).

See Also

Document.getElementsByClassName|Element.getElementsByClassName|HTMLDocument.getElementsByClassName

Availability

HTML 5|W3C|W3C

Functions

Method Action Mozilla Chrome Safari Opera IE Netscape
checkValidity() : Boolean
The user agent must instanceally validate the constraints of the form element, and return true if the constraint validation return a positive result, and false if it returned a negative result.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no

Returns
Boolean

Availability

WhatWG

setCustomValidity(String error) : void
Sets the custom validity error message to the value of the given message argument.
Show Details 0.1+ 1.2+ 1.2+ 9.0+ no no

Parameters
String error The error message for the validity check.

Availability

WhatWG

References

HTMLKeygenElement

Availability

JavaScript 1.2|WhatWG

text_javascript aptana_docs