Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

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>