HTML | DOM Input Datetime autocomplete Property Last Updated : 20 Sep, 2022 Comments Improve Suggest changes Like Article Like Report The Input Datetime autocomplete property in HTML DOM is used to set or return the value of autocomplete attribute of an Input Datetime field. The autocomplete attribute is used to specify whether the autocomplete attribute has "on" or "off" value. When the autocomplete attribute is set to on, the browser will automatically complete the values based on which the user entered before. Syntax: It returns the Input Datetime autocomplete property.DatetimeObject.autocompleteIt is used to set the Input Datetime autocomplete property.DatetimeObject.autocomplete = "on|off" Property Values: It contains two values which are listed below: on: It is the default value. It automatically completes the values.off: It defines that the user should fill the values of the input DateTime field. It does not automatically complete the values. Return Value: It returns a string value which represents the state of autocomplete. Example 1: This example illustrates how to return Input Datetime autocomplete property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Datetime autocomplete Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2 style="font-family: Impact;"> Input Datetime autocomplete Property </h2> <br> <input type="datetime" id="test_Datetime" autocomplete="on"> <button ondblclick="My_Datetime()"> Check </button> <p id="test"></p> <script> function My_Datetime() { // Return the Datetime autocomplete // property value var d = document.getElementById( "test_Datetime").autocomplete; document.getElementById("test").innerHTML = d; } </script> </body> </html> Output: Before Clicking the Button: After Clicking the Button: Example 2: This example illustrates how to set Input Datetime autocomplete Property. HTML <!DOCTYPE html> <html> <head> <title> Input Datetime autocomplete Property in HTML </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2 style="font-family: Impact;"> Input Datetime autocomplete Property </h2> <br> <input type="datetime" id="test_Datetime" autocomplete="on"> <button ondblclick="My_Datetime()"> Check </button> <p id="test"></p> <script> function My_Datetime() { // set the Datetime autocomplete // property Value. var d = document.getElementById( "test_Datetime").autocomplete = "off"; document.getElementById("test").innerHTML = "The value of the autocomplete " + "attribute was changed to " +d; } </script> </body> </html> Output: Before Clicking the Button: After Clicking the Button: Supported Browsers: The browsers supported by HTML DOM Input Datetime autocomplete Property are listed below: Google ChromeInternet ExplorerFirefoxSafariOpera Comment More infoAdvertise with us Next Article HTML | DOM Input Datetime autocomplete Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM HTML-Attributes Similar Reads HTML | DOM Input DatetimeLocal autocomplete Property The Input DatetimeLocal autocomplete Property is used to set or return the value of the autocomplete attribute of an Input DatetimeLocal field. The autocomplete attribute is used to specify whether the autocomplete attribute has âonâ or âoffâ value. When the autocomplete attribute is set to on, the 2 min read HTML | DOM Input Date autocomplete Property The Input Date autocomplete property in HTML DOM is used to set or return the value of autocomplete attribute of an Input Date field. The autocomplete attribute is used to specify whether the autocomplete attribute has an "on" or "off" value. When the autocomplete attribute is set to on, the browser 2 min read HTML | DOM Input Datetime autofocus Property The Datetime autofocus property is used to set or return the autofocus of Datetime field. The Datetime autofocus property returns true if the datetime field automatically gets focus when the page loads, else it returns false. The HTML autofocus attribute is reflected by the Datetime autofocus proper 2 min read HTML | DOM Input URL autocomplete Property The DOM Input URL autocomplete Property in HTML DOM is used to set or return the value of the autocomplete attribute of an Input URL field. The autocomplete attribute is used to specify whether the autocomplete attribute has âonâ or âoffâ value. When the autocomplete attribute is set to on, the brow 2 min read HTML DOM Input Tel autocomplete Property The input tel autocomplete property in HTML DOM is used to set or return the value of the autocomplete attribute of an input tel field. The autocomplete attribute is used to specify whether the autocomplete attribute has an "on" or  "off" value. When the autocomplete attribute is set to on, the brow 2 min read Like