Easy Tutorial
❮ Event Onprogress Met Nav Taintenabled ❯

Button form Attribute


Definition and Usage

The form attribute returns a reference to the form that contains the button.

It returns a form object if the button is included, or null if the button is not included.

Syntax


Browser Support

All major browsers support the form attribute.


Example

The following example returns the id of the form that the button belongs to:


❮ Event Onprogress Met Nav Taintenabled ❯