Latest web development tutorials

HTML DOM Input Text blur () method

Input Text Object Reference Input Text Object

Examples

Remove text fields Focus:

document.getElementById ( "myText") blur ().;

try it"


Definition and Usage

blur () method is used to remove the focus of the text field.

Tip: If you need to use the text field gets focus focus () method.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the blur () method.


grammar

textObject .blur ()

parameter

None.

Technical details

return value: No return value


Input Text Object Reference Input Text Object