how to unselect input javascript

JavaScript
document.inputDiv.blur();
// Deselects that input
Source

Also in JavaScript: