November 13, 1999 - Confirm Dialog Boxes
![]() |
November 13, 1999 Confirm Dialog Boxes Tips: November 1999
Yehuda Shiran, Ph.D.
|
confirm() method of the window object. It returns a Boolean value (OK = true; Cancel = false):
if (confirm("Are you sure you want to continue?"))
alert("Moving on...")
else
alert("Click again to continue...");Go ahead and give it a try:



