HTML DOM Input Text blur() Method Last Updated : 31 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Text blur() method in HTML DOM is used to pull or remove focus from the text field when the event occurs. Syntax: textObject.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 input text blur() method in HTML DOM. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Text blur() Method </title> </head> <body style="text-align:center;"> <h1 style="color:green">GeeksforGeeks</h1> <strong>DOM Input Text blur() method</strong> <form id="myForm"> <input type="text" id="text_id" name="userinput" autofocus> </form> <br> <button onclick="myblur()">Get Focus!</button> <!-- script to remove focus to the text field--> <script> function myblur() { var txt = document.getElementById("text_id").blur(); } </script> </body> </html> Output Supported Browsers: Google Chrome 1Mozilla Firefox 1Edge 12OperaSafari 1 Comment More infoAdvertise with us Next Article HTML DOM Input Text blur() Method M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Methods Similar Reads 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 Input URL blur() Method The Input URL blur() method in HTML DOM is used to extract or remove focus from the URL text field when the event occurs. Syntax: urlObject.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 1 min read HTML DOM Input Search blur() Method The Input Search blur() method in HTML DOM is used to extract or remove focus from the search field when the event occurs. Syntax: searchObject.blur()Parameters: This method does not contain any parameter values. Return Value: It does not return any value. Example: Below program illustrates the use 1 min read 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 Text select() Method The DOM Input select() method selects all the text content of a textarea or an input element that contains the text field. Syntax: element.select(); Parameters: This method does not accept any parameters. Example: This example selects the content of the input text field. HTML <!DOCTYPE html> 1 min read Like