Input Text blur() Method

Definitie en gebruik

blur() Deze methode wordt gebruikt om de focus van een tekstveld te verwijderen.

Tip:Gebruik focus() Method Focus can be assigned to the text field.

Example

Remove focus from the text field:

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

Try it yourself

Syntax

textObject.blur()

Parameters

None.

Technical details

Return value:

No return value.

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support