Input Week formProperty
Examples
Return the id of the form that contains the <input type="week"> element:
var x = document.getElementById("myWeek").form.id;
xThe result is:myForm
Try it Yourself »
Definition and Usage
The form property returns a reference to the form that contains the week field.
On success, this property returns the form object.
Note:This property is read-only.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the form property.
Note:Internet Explorer or Firefox browsers do not support the <input type="week"> element.
Syntax
weekObject.form
Technical Details
| Return Value: | A reference to the form element that contains the week field. If the week field is not in a form, returns null. |
|---|
Input Week Object Other Extensions