Advertisement
Guest User

put words in a input

a guest
Feb 10th, 2022
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.30 KB | None | 0 0
  1. <html>
  2. <body>
  3.     <input type="text" placeholder="Busca algo" id="in" onclick="buscar()">
  4.     <button id="boton" onclick="search()">Search</button>
  5.  
  6.     <script>
  7.     function buscar() {
  8.     var input = document.getElementById("in");
  9.     input.innerHTML = "mary poppins";
  10.     }  
  11.     </script>
  12. </body>
  13. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement