Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to create a customized confirmation alert in javascript
eliza sahoo
Mar 25 2010 9:45 AM
4.7k
Reply
When you implement a delete feature in your application, a very basic additional feature which is always expected to be implemented is a confirmation box, so that the user gets a prompt before doing some delete activity.
For implementing this, there is already a Javascript function called
confirm()
.
The syntax for this is very simple and i am sure every developer is aware of this. The syntax is as follow:
var confirm = confirm("Are you sure you want to do this?");
if(confirm)
{
//do your delete operation
}
else
{
return false;
}
Hope this
tip
did help u.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Giving User, a software along with database in C#.net
Date wise Bulk File Copying Application Using C#