Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!Doctype html>
- <html>
- <head>
- </head>
- <body>
- <input type="text" id="txtJob" value="software engineer">
- <button type="button" onclick="myFunction()">HERE</button>
- <script>
- function myFunction(){
- var id=document.getElementById("txtJob").value;
- document.write("<h1>"+id+"</h1>);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement