Hey everyone, I have a golf tee time system I created and there is a page that displays all the tee times for the current day. On this page I have a delete button next to each time. When this button is clicked is there a way to open a dialog box that prompts with something like "Are you sure you want to delete this tee time?" and options "Delete Time" and "Cancel" as buttons? I know it can be done, just not quite sure how... Thx
add a javascript function in <head> section like this: <script type="text/javascript"> function sure(){ var msg = "Are you sure?"; return confirm(msg); } </script> PHP: then you can call it in a <a> tag like this: <a href="yourscript.php" onclick="return sure();">click me</a> PHP: hope this helps