Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Var input = document.queryselector("ид инпута")
  2. Var SubmitButton = document.queryselector("ид кнопки")
  3.  Submitbutton.addEventListener('click' () => {
  4. Var text = input.value
  5. prompt(text)
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement