Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- function prompter()
- {
- var reply = prompt("What's your first name?", "")
- alert ( "hello " + reply + "!")
- rply= prompt("What's your last name?", "")
- alert("hello "+ reply +" "+rply);
- document.getElementById("demo").innerHTML=reply+" "+rply;
- }
- </script>
- </head>
- <body onload="prompter()">
- <p id="demo"></p>
- </body>
- </html>
Add Comment
Please, Sign In to add comment