Keygen formProperty
Examples
Return the id of the form containing the <keygen> element:
var x = document.getElementById("myKeygen").form.id;
xThe output result is:
myForm
Try it Yourself »
Definition and Usage
The form property returns the form containing the keygen field.
On success, the form property returns a form object.
Note:This property is read-only.
Browser Support
![]()
All major browsers support the form property, except Internet Explorer.
Syntax
keygenObject.form
Technical Details
| Return Value: | The form element containing the keygen field. If it does not contain a keygen field, returns null. |
|---|
Other Extensions
Keygen Object