HTML DOM Input Tel Object Last Updated : 29 Aug, 2022 Comments Improve Suggest changes 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 Tel 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 Range Object The Input Range Object in HTML DOM is used to represent the HTML < input > element with type="range". This object is used to access or create the <input> element. This element can be accessed by using getElementById() method. Syntax: document.getElementById("Input_ID"); This Input_ID is 2 min read HTML DOM Input Search Object The Input Search object is used for representing an HTML <input> element of the type="search". The Input Search Object is new in HTML5. Syntax: For creating a <input> element with the type ="search":let input_field = document.createElement("input");input_field.setAttribute("type", "sear 2 min read HTML| DOM Ins Object The DOM ins Object is used to represent the HTML <ins> element. The ins element is accessed using getElementById().Properties: cite: It is used to set or return the value of the cite attribute of a inserted element.dateTime: It is used to sets or returns the value of the dateTime attribute of 2 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 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 HTML | DOM Input Hidden Object The Input Hidden object in HTML DOM represents the <input> element with type = âhiddenâ attribute. The element can be accessed by using getElementById() method.Syntax: document.getElementById("id"); where id is assigned to the <input> tag.Property Values: defaultvalue: It is used to set 2 min read HTML DOM Input Tel form Property The DOM Input Tel form Property in HTML is used for returning the reference of the form containing the input tel field. It is a read-only property that returns a form object on success. Syntax: telObject.form Return Value: It returns a string value that specifies the reference of the form containing 1 min read Like