Input Week form Property

Definition and Usage

form This property returns a reference to the form containing the week field.

This property returns the form object on success.

Note:This property is read-only.

Example

Return the id of the form containing the <input type="week"> element:

var x = document.getElementById("myWeek").form.id;

Try It Yourself

Syntax

weekObject.form

Technical Details

Return Value:

Reference to the form element containing the week field.

If the week field is not in the form, it returns null.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 10.0 Support Support Support

Note:The <input type="week"> element does not display any date field/calendar in Firefox.