Keygen formProperty

Keygen 对象参考手册Keygen Object

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

Internet Explorer Firefox Opera Google Chrome Safari

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.


Keygen 对象参考手册Keygen Object

Other Extensions