HTML DOM Fieldset type Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

Fieldset type Property

❮ Fieldset Object

Example

Return which type of form element the fieldset is:

var x = document.getElementById("myFieldset").type;
Try it Yourself »

Definition and Usage

The type property returns which type of form element a fieldset is.

For a fieldset, this property will always return "fieldset".

Note: This property is read only.


Browser Support

Property
type Yes Not supported Yes Not supported Yes

Syntax

fieldsetObject.type

Technical Details

Return Value: A string, representing the type of form element the fieldset is

❮ Fieldset Object