var field = document.querySelector('input'), time; field.addEventListener('input', function (e) { clearTimeout(time); time = setTimeout(function () { console.log('ввод закончен'); }, 3000); });