YouTip LogoYouTip

Prop Input Time Form

HTML DOM Input Time form Property

HTML DOM Input Time form Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

HTML DOM Input Text Object

<input> - url

Input Time form Property

Input Time Object Reference Input Time Object

Example

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

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

x output result is:

myForm

Try it yourself Β»


Definition and Usage

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

On success, this property returns a form object.

Note: This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the form property.

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


Syntax

timeObject.form

Technical Details

Return Value: A reference to the form element that contains the time field. Returns null if the time field is not in a form.

Input Time Object Reference Input Time Object

HTML DOM Input Text Object

<input> - url

iFlytek Coding Plan includes free model call quotas, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform. Configuration Guide Β₯3.9/month Subscribe Now

Click to Share Notes

Cancel

Write notes...

Image address

Image description

← Prop Input Time ReadonlyProp Input Time Name β†’