Input Time formProperty

Input Time 对象参考手册Input Time Object

Example

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

var x = document.getElementById("myTime").form.id;
xThe output is:
myForm

Try it Yourself »

Definition and Usage

The form property returns a reference to the form containing the time field.

On success, this property returns the form object.

Note:This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the form property.

Note:Internet Explorer or Firefox browsers do not support HTML <input> elements with the type="time" attribute.


Syntax

timeObject.form

Technical Details

Return Value: A reference to the form element containing the time field. If the time field is not in a form, returns null.


Input Time 对象参考手册Input Time Object Other Extensions