if(/iPad|iPhone|iPod/.test(navigator.platform) || /Android/.test(navigator.appVersion)) { document.addEventListener('touchmove', function(e){ var El = document.activeElement, ElTypes = ['text', 'password', 'email', 'tel']; if(El && ElTypes.indexOf(El.type) !== -1) { document.activeElement.blur(); } }, false); }