HTML DOM Input Tel focus() Method Last Updated : 05 May, 2022 Comments Improve Suggest changes Like Article Like Report The input tel focus() method in HTML DOM is used to get focus to an input tel field when the event occurs. Syntax: telObject.focus() Parameters: This method does not accept any parameter values. Return Value: This method does not return any values. Example: Below HTML code illustrates the use of the input tel focus() method. HTML <!DOCTYPE html> <html> <body style="text-align:center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2> DOM Input Tel focus() method </h2> <legend> Phone Number: <input type="tel" id="mytel" value="6753682635"> </legend> <br><br> <button onclick="btnclick()"> Click Here! </button> <script> function btnclick() { var x = document.getElementById("mytel").focus(); } </script> </body> </html> Output: Supported Browsers: Google ChromeEdgeFirefoxSafariOpera Comment More infoAdvertise with us Next Article HTML DOM Input Tel focus() Method M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Methods Similar Reads HTML DOM Input Text focus() Method The Input Text focus() method in HTML DOM is used to get focus to the text field when the event occurs. Syntax: textObject.focus() Parameters: This method does not contain any parameter values. Return Value: It does not return any value. Example: Below program illustrates the use of the input text f 1 min read HTML DOM Input URL focus() Method The Input URL focus() method in HTML DOM is used to get focus to the Input URL field when the event occurs. We can use this method for directing the focus of the user when an event occurs. Syntax: URLObject.focus() Parameters: This method does not contain any parameter values. Return Value: It does 1 min read HTML DOM Input Search focus() Method The Input Search focus() Method in HTML DOM is used to get focus to the Input search Field when an event occurs. Syntax: searchObject.focus();Parameter: This method does not contain any parameter value. Return Value: It does not return any value. Example: The below example illustrates the use of the 1 min read HTML DOM Input Tel blur() Method The input Tel blur() method in HTML DOM is used to pull or remove focus from the tel field when the event occurs. Syntax: telObject.blur() Parameters: This method does not contain any parameter values. Return Value: It does not return any value. Example: Below program illustrates the use of the inpu 1 min read HTML DOM focus() Method DOM focus() method is used to give focus to an element and also to remove the focus with the help of blur() method. We can apply focus to any element and enable it by doing some operation. For example, we can give focus to some text by clicking a button. Syntax: Object.focus() Example-1: HTML <!D 1 min read Like