HTML | DOM Input Time name Property Last Updated : 29 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The DOM Input Time name Property in HTML DOM is used to set or return the value of name attribute of a Time field. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It returns the Input Time name property.timeObject.nameIt is used to set the Input Time name property.timeObject.name = name Property Values: It contains a single value name which defines the name of the Time field. Return Value: It returns a string value which represents the name of the Time field. Example-1: This example illustrates how to return Input Time name property. html <!DOCTYPE html> <html> <head> <title> DOM Input Time name Property </title> </head> <body> <center> <h1 style="color:green;"> GeeksForGeeks </h1> <h2> DOM Input Time name Property </h2> <label for="uname" style="color:green"> <b>Enter time</b> </label> <input type="time" id="gfg" name="Geek_time" placeholder="Enter time" step="5" readonly> <br> <br> <button type="button" onclick="geeks()"> Click </button> <p id="GFG" style="font-size:24px; color:green'"> </p> <script> function geeks() { var link = document.getElementById( "gfg").name; document.getElementById( "GFG").innerHTML = link; } </script> </center> </body> </html> Output: Before Clicking On Button: After Clicking On Button : Example-2: This Example illustrates How to set the Property. html <!DOCTYPE html> <html> <head> <title> DOM Input Time name Property </title> </head> <body> <center> <h1 style="color:green;"> GeeksForGeeks </h1> <h2> DOM Input Time name Property </h2> <label for="uname" style="color:green"> <b>Enter time</b> </label> <input type="time" id="gfg" name="Geek_time" placeholder="Enter time" step="5" readonly> <br> <br> <button type="button" onclick="geeks()"> Click </button> <p id="GFG" style="font-size:24px; color:green'"> </p> <script> function geeks() { var link = document.getElementById( "gfg").name = "Hello Geeks"; document.getElementById( "GFG").innerHTML = "The value of the name attribute"+ " was changed to " + link; } </script> </center> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Supported Browsers: The browser supported by DOM input Time name property listed below: Google Chrome 20Edge 12Firefox 57Opera 10Safari 14.1 Comment More infoAdvertise with us Next Article HTML | DOM Input Time name Property M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM Input Time min Property The DOM Input Time min Property is used to set or return the value of the min attribute of a number field. The min attribute defines the minimum time for an input Time field. Syntax: It returns the min property.timeObject.minIt is use to set the min property.timeObject.min = hh:mm:ss.ms Property val 2 min read HTML | DOM Input Time max Property The DOM Input Time max Property in HTML DOM is used to set or return the value of the max attribute for the Time field. The max attribute specify the maximum time value allowed for the Time field. Syntax: It returns the max property.timeObject.maxIt is use to set the max property.timeObject.max = hh 2 min read HTML | DOM Input Week name Property The Input Week name property in HTML DOM is used to set or return the value of the name attribute of an input week field. The name attribute is required for each input week field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: I 2 min read HTML | DOM Input Range name Property The DOM Input Range NAME Property in HTML DOM is used to set or return the value of name attribute of a range field. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It returns 2 min read HTML DOM Input Time list Property The input Time list property in HTML DOM is used to return a reference to the list element that contains an input Time field. Syntax: timeObject.list.idReturn 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 r 1 min read Like