Copy Code<script type="text/javascript"> var inputname = prompt("Please enter your name", "");alert(inputname);</script></head>