document.querySelector("#submit").onclick = function(){
  alert("Вы нажали на кнопку");