<html> <body> <script language="JavaScript"> function function1() { window.prompt("Please, enter your full name", "Yes, here"); } </script> <input type="button" value="Open a prompt window" onclick="function1();"> </body> </html>