Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <b id="testo">Hello Word!!</b>
- <input id="input" type="text" style="width: 200px;">
- <button onclick="stampa()">Stampa</button>
- <script>
- function stampa(){
- document.getElementById(input).value=document.getElementById(testo).innerHTML;
- }
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement