Display confirm dialog
<html> <body> <script language="JavaScript"> function function1() { window.confirm("Confirmation window"); } </script> <input type="button" value="Click to bring up a confirm window" onclick="function1();"> </body> </html>