YouTip LogoYouTip

Prop Input Time Type

HTML DOM Input Time type Attribute

HTML DOM Input Time type Attribute

-- 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 type Attribute

Input Time Object Reference Input Time Object

Example

Return the form element type of the time field:

var x = document.getElementById("myTime").type;

x output value is:

time

Try it yourself Β»


Definition and Usage

The type attribute returns the form type of the time field.

Note: In the example above, Opera, Chrome, and Safari browsers return "time", while Internet Explorer and Firefox browsers return "text".


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the type attribute.

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


Syntax

timeObject.type


Technical Details

Return Value: A string representing the form element type of the time field.

Input Time Object Reference Input Time Object

HTML DOM Input Text Object

<input> - url

ByteDance Coding Plan supports Doubao, GLM, DeepSeek, Kimi, MiniMax and other mainstream large models, officially supplied, stable and reliable.

Xunfei Xingchen 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...

← Prop Input Time ValueProp Input Time Type β†’