Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Input Time form property

Input Time form property

Input Time Object Reference Input Time Object

Example

Return the form containing The form id to which the element belongs:

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

x

The output is:

myForm

Try it »


Definition and Usage

The form property returns a reference to the form that contains the time field.

On success, this attribute returns the form object.

Note: This attribute is read-only.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the form attribute.

Note: Internet Explorer or Firefox browsers do not support HTML using the type="time" attribute .


Syntax

timeObject

.form

Technical Details

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

Input Time Object Reference Input Time Object