Alerting a (yes or no) option before deleting?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
NEWDAY
Forum Newbie
Posts: 12
Joined: Wed Jan 31, 2007 5:15 pm

Alerting a (yes or no) option before deleting?

Post by NEWDAY »

Hello everybody...

I'm asking if there is a way to alert a message box containing (Yes and No) when a user clicks on an html submit button that performs a deleting operation, and cancels the operation if he chooses (No) otherwise if he chooses (Yes) it performs the operation?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

you want to use javascript's "confirm" method - search these forums, there was an example about a week ago
visitor-Q
Forum Commoner
Posts: 72
Joined: Mon Feb 05, 2007 1:40 am

Post by visitor-Q »

Post Reply