Home

Web development
└─ HTMLElement: blur() method

The blur() method makes the element lose keyboard focus.

To make the currently active element lose keyboard focus, run

document.activeElement.blur();

References