Input Time form Attribute
Definition and Usage
form
The property returns a reference to the form containing the time field.
This property returns the form object upon success.
Note:This property is read-only.
Example
Returns the id of the form containing the <input type="time"> element:
var x = document.getElementById("myTime").form.id;
Syntax
timeObject.form
Technical Details
Return Value: | Reference to a form element containing a time field. If the time field is not in the form, it returns null . |
---|
Browser Support
The numbers in the table indicate the first browser version that fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |
Note:The <input type="time"> element does not display as any time field in Firefox.