angst
12-29-2005, 04:16 PM
Hello!
I'm trying to run two onClick(s) at one time,, but only the first one is being hit,
my code
<input type="button" value="Delete" onClick="return confirm('Are you sure you want to delete this file?');" onClick="location.href='?action=del&id=<%=request("id")%>'" class="buttons" />
how can I make both work?
so that on the confirm if you OK, it will continue with the url?
thanks in advance for your time!
-SiX
I'm trying to run two onClick(s) at one time,, but only the first one is being hit,
my code
<input type="button" value="Delete" onClick="return confirm('Are you sure you want to delete this file?');" onClick="location.href='?action=del&id=<%=request("id")%>'" class="buttons" />
how can I make both work?
so that on the confirm if you OK, it will continue with the url?
thanks in advance for your time!
-SiX