return means, in all computer languages I'm aware of (maybe 12 or 15), "return RIGHT NOW and do NOT do ANYTHING past this point."
So when the user says "OK" to your confirm, WHAM, you are done, right then.
The funny part: If the user does *NOT* say "OK"
then your code will go on and do the change to the location.href!
In other words, your code is doing the *opposite* of what you want it to do.
So you could fix this a couple of ways, but I'd prefer seeing you do this:
Code:
<input name="Delete" type="button" value="Delete"
onclick="if ('Are you sure you want to delete this member?') {location.href='delete.cfm';}">
p.s.: I do NOT see how changing the page to
delete.cfm is going to cause deletion of this
specific record. You will be passing *NOTHING* to that new page that will tell it WHICH member you want to delete. You don't show enough code to know this for sure, but if the above code doesn't work, I'm willing to be that is the problem. In which case show more code. Say, from the <FORM> to the </FORM> if it's not too much code. (If it's too much, try to toss out anything irrelevant to the delete, per se.)