Javascript built-in function Prompt
|
function mypropmt() { var response = prompt("Hi, Whats your name?", "") alert(response) } |
|
<script type="text/javascript"> function mypropmt() { var response = prompt("Hi, Whats your name?", "") alert(response) } </script> |