edited to heckle Kyank ;)
Found it! This will pop up a cancel button...
Basically, what this code does is:
if (confirm("Are you sure you want to enter HTML Goodies?") )
alert("Then you'll stay right here");
This should be easy enough to figure out with the explanation. Any questions? I'm just a click away.
- Uses the confirm() function to display an okay / cancel box
- uses the if statement to see whether the clicked okay or cancel
- If the user clicked okay, the page opens a window and displays a message box.
- If the user clicks cancel, it displays a message in a message box and then in the status bar.
Hope this helps. :) Kevin, I guess you can do an okay / cancel dialog in JS. :lol: