ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Clients side JS confirmation message?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS
View previous topic :: View next topic  
Author Message
TheWorks



Joined: 15 Oct 2004
Posts: 7

PostPosted: Fri Oct 15, 2004 8:22 am    Post subject: Clients side JS confirmation message? Reply with quote

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
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Fri Oct 15, 2004 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

SQL Tutorial