Hey there

have a small problem with passing a Url, its works fine at the minute but i need to validate that the remove function that the URL will carry out is what the user actually intends to do, something like a VB yes/No messgae box.

At the min my a tag is:
<a href="Remove.asp?Remove=<%=rsUser.fields("sUser")%> onClick="Remove()">DELETE</a>

The Java Script I'm attempting to run is:
Function Remove()
{var OK = window.confirm("You are about to delete this record. Click OK to delete this record. Click Cancel to stop.");
if (!OK) {
return false;
}
document.form1.submit();
}



Is this possible? Does anyone have any better ideas??
any help greatly appreciated.