JS $(document).ready(function(){ $("body").click(function(){ if(!event.srcElement.type) { $("input").blur(); } }) })