If OK button was clicked
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> var response = confirm("Click OK or Cancel."); if ( response == true ) { alert("A fine choice!") } </script> </head> <body> </body> </html>