Spudlington
11-29-2003, 11:23 AM
Hello, I am trying to make a confirmation box on a link, so that you have to click ok before the link will work. However when you click ok, or cancel it does nothing. Am I missing something simple here? Here is my code.
<a href="javascript:;" onClick="temp = window.confirm(' Do you really want to delete this entry?'); if (temp == 1) window.location.replace('deleterosterentry.php');">blah</a>
:confused:
Thankyou
<a href="javascript:;" onClick="temp = window.confirm(' Do you really want to delete this entry?'); if (temp == 1) window.location.replace('deleterosterentry.php');">blah</a>
:confused:
Thankyou