enfoire

задача 1.

Apr 17th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta charset="utf-8">
  6. <script type="text/javascript">
  7. //функция вызывается при нажатии на кнопку
  8. function appnd(){
  9.     let value1 = document.getElementById("inp1").value;
  10.     let elem2 = document.getElementById("inp2");
  11.     elem2.value= elem2.value + value1;
  12.  
  13. }
  14.  
  15. </script>
  16. </head>
  17. <body>
  18. <input id="inp1" type="text" name="inp1" placeholder="Введите строку">
  19.  
  20. <input id="inp2" type="text" name="inp2" placeholder="Введите еще строку">
  21. <!— кнопка —>
  22. <input onclick="appnd();" type="button" name="" value="Склеить строки">
  23.  
  24. </body>
  25. </html>
Add Comment
Please, Sign In to add comment