View previous topic :: View next topic |
Author |
Message |
TheWorks
Joined: 15 Oct 2004 Posts: 7
|
Posted: Fri Oct 15, 2004 8:22 am Post subject: Clients side JS confirmation message? |
|
|
Hi,
I have an ASP page that displays records from my database.
Each displayed record has a link "Delete", which when clicked deletes the record from the database.
I want to ask the user to confirm if he really wants to delete the record. I want to do this with JS if possible.
Anybody knows how to do that?
Thanks in advance |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Fri Oct 15, 2004 3:21 pm Post subject: |
|
|
That's fairly easy to do. There is a JavaScript function called confirm, which does exactly what you need.
Here is how to use it:
Code: |
confirm ("Do you want to delete the record?");
|
_________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|