Latest web development tutorials

HTML DOM Input Time form properties

Input Time Object Reference Input Time Object

Examples

Returns <input type = "time"> id element form belongs:

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

try it"

Definition and Usage

form property returns form contains time reference field.

This property returns the form object success.

Note: This property is read-only attribute.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support form property.

Note: Internet Explorer or Firefox browser does not support type = "time" attribute of the HTML <input> elements.


grammar

timeObject .form

technical details

return value: Time field contains a reference to the form elements. If the field is not in the form of time, returns null.


Input Time Object Reference Input Time Object