window.onload = function() { var login_field = document.getElementById('login_field'); login_field.oninput = function() { document.getElementById('login_message').innerHTML = "Проверка!!!"; } }