|
-
Feb 13th, 2001, 12:28 AM
#1
Thread Starter
Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|