HTML DOM Input Tel Object Last Updated : 29 Aug, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The Input Tel Object in HTML DOM is used to represent an HTML input element with type= “tel". The input element with type= “tel” can be accessed by using getElementById() method. Syntax: It is used to access input tel object.document.getElementById("id");It is used to create an input elementdocument.createElement("input"); Example 1: Below HTML code illustrates how to access the Input Tel Object. HTML <!DOCTYPE html> <html> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Tel Object</h2> <input type="tel" id="mytel" value="6753682635"> <p>Click the button to get the phone number of the Input Tel field.</p> <button onclick="myFunction()"> Click Here! </button> <p id="demo"></p> <script> function myFunction() { // Accessing input value var x = document.getElementById("mytel").value; document.getElementById( "demo").innerHTML = x; } </script> </body> </html> Output: Example 2: Below HTML code used to create the Input Tel Object. HTML <!DOCTYPE html> <html> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Tel Object</h2> <p>Click the button to create a input tel field.</p> <button onclick="myFunction()">Click Here!</button> <br> <br> <script> function myFunction() { // Creating input element. var x = document.createElement("INPUT"); x.setAttribute("type", "tel"); x.setAttribute("value", "8976353828"); document.body.appendChild(x); } </script> </body> </html> Output: Supported Browsers: Google Chrome 3+Mozilla FirefoxEdge 12+Safari 4+Opera 11+ Comment More infoAdvertise with us Next Article HTML | DOM Input Password Object M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM Similar Reads HTML | DOM Input Time Object The Input Time object in HTML DOM represents an <input> element with type = "time" attribute. The time attribute can be accessed by using getElementById() method. Syntax: document.getElementById("id"); where id is assigned to the <input> tag. Property Values: list: It returns the referen 3 min read HTML DOM Input Tel select() Method The input tel select() method in HTML DOM is used to select the contents of the input tel field. It is an in-built method of the input tel object. Syntax: telObject.select() Parameters: This method does not accept any parameters. Return Value: This method does not return any value. Example: Below HT 1 min read HTML | DOM Input Password Object The Input Password Object in HTML DOM is used to represent an HTML input element with type="password". The input element with type="password" can be accessed by using getElementById() method. Syntax: It is used to access input type="password"document.getElementById("id");It is used to create type="p 3 min read HTML | DOM Input Password Object The Input Password Object in HTML DOM is used to represent an HTML input element with type="password". The input element with type="password" can be accessed by using getElementById() method. Syntax: It is used to access input type="password"document.getElementById("id");It is used to create type="p 3 min read HTML | DOM Input Number Object The Input Number Object in HTML DOM is used to represent an HTML input element with type= "number". The input element with type= "number" can be accessed by using getElementById() method. Syntax: It is used to access input number object.document.getElementById("id");It is used to create input elemen 3 min read HTML DOM Input Button Object The DOM Input Type Button Object is used to represent the HTML <input> element with type="button". The Input Type Button element is accessed by getElementById(). Syntax: document.getElementById("ID"); Where âidâ is the ID assigned to the âinputâ tag. Example 1: In this example, we will see the 2 min read Like