Use of the CONFIRM command


The box you already see on the screen appeared because of the following javascript code <script language="JavaScript"> confirm("This is a confirm-box. CLICK ok or confirm to PROCEED"); </script>

You may not see this line untill you have clicked.
The presence of a return in the text gave me some trouble.
We can use buttons to make a more controlled use of alert-box as follows.



As you can see the confirmbox shows two buttons. But in this example, whatever you click, the efect is, apparently, the same. The following example will show two different effect: