HTML DOM Input Time type attributes
Examples
Return time field form element type:
var x = document.getElementById("myTime").type;
x output values:
time
try it"
Definition and Usage
type property returns the type of form field of type time.
Note: The above example Opera, Chrome and Safari Back "time", Internet Explorer and Firefox browser returns "text".
Browser Support
All major browsers support attribute type
Note: Internet Explorer or Firefox browser does not support type = "time" attribute of the HTML <input> elements.
grammar
timeObject .type
technical details
return value: | String representing the form element type time fields. |
---|
Input Time Object