Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML DOM Input Time list Property

Improve Article
Save Article
  • Last Updated : 30 Aug, 2022
Improve Article
Save Article

The input Time list property in HTML DOM is used to return a reference to the list element that contains an input Time field.


Return value: It returns a string value that represents the value of the id attribute of the datalist element.

Example:  Below HTML code is used to return the input time list property.  


<!DOCTYPE html>
    <title>DOM Input Time list Property</title>
        <h1 style="color:green;">
        <h2>DOM Input Time list Property</h2>
        <label for="uname" style="color:green">
            <b>Enter time</b>
        <input type="time" id="gfg" list="time_list"
            placeholder="Enter time">
        <datalist id="time_list">
            <option value="09:55:32.55">
            <option value="22:15:35">
            <option value="16:00">
            <option value="12:00">
            <option value="11:00">
        <button type="button" onclick="geeks()">
            Click Here!
        <p id="GFG" style="font-size:24px; color:green;">
            function geeks() {
                var link =
                    "GFG").innerHTML = link;



Supported Browsers:

  • Google Chrome 20 and above
  • Edge 12 and above
  • Firefox 57 and above
  • Opera 10 and above
  • Safari 14.1 and above

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!