Home
Run >
<html> <head> <title>Javascript Confirm Dialog Box Example</title> <SCRIPT LANGUAGE="JavaScript"> function respConfirm () { var response = confirm('Please confirm, you want to continue?'); if (response) alert("Your response was OK!"); else alert("Your response was Cancel!"); } </SCRIPT> </head> <body> <form name="myform"> <input type=button value="Confirm Dialog Try It" onClick="respConfirm();"/> </form> </body> </html>