YouTip LogoYouTip

Dom Obj Input Time

# HTML DOM Input Time Object * * * ## Input Time Object The Input Time object is new in HTML5. The Input Time object represents an HTML `` element with `type="time"`. **Note:** Internet Explorer or Firefox do not support the `` element with `type="time"`. ### Accessing the Input Time Object You can use the `getElementById()` function to access the `` element with `type="time"`: ```javascript var x = document.getElementById("myTime"); (#) **Tip:** You can also access the Input Time object through the form's (#) collection. ### Creating an Input Time Object You can use the `document.createElement()` method to create an `` element with `type="time"`: ```javascript var x = document.createElement("INPUT"); x.setAttribute("type", "time"); (#) ## Input Time Object Properties | Property | Description | | --- | --- | | autocomplete | Sets or returns the autocomplete attribute value of the time field | | (#) | Sets or returns whether the time field should automatically get focus when the page loads | | defaultValue | Sets or returns the default value of the time field | | (#) | Sets or returns whether the time field is disabled | | (#) | Returns a reference to the form that contains the time field | | list | Returns a reference to the datalist that contains the time field | | max | Sets or returns the max attribute value of the time field | | min | Sets or returns the min attribute value of the time field | | (#) | Sets or returns the name attribute value of the time field | | (#) | Sets or returns whether the time field is read-only | | (#) | Sets or returns whether the time field must be filled out before submitting the form | | step | Sets or returns the step attribute value of the time field | | (#) | Returns the form element type of the time field | | (#) | Sets or returns the value attribute value of the time field | ## Standard Properties and Events The Input Time object also supports standard (#) and (#). * * * ## Related Articles HTML Tutorial: (#) HTML Reference: [HTML `` Tag](#)
← Python3 InputoutputProp Search Value β†’