Easy Tutorial
❮ Prop Select Name Prop Html Lang ❯

English: # Input 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 contained within a form, or null if it is not.

Syntax


Browser Support

All major browsers support the form attribute.


Example

The following example returns the id of the form that contains the button:


❮ Prop Select Name Prop Html Lang ❯