?
Solved

Confirm delete from form button

Posted on 2006-03-21
1
Medium Priority
?
529 Views
Last Modified: 2008-03-04
Hello.

How can I add a confirmation box?

An alert box that says: "Are you sure you want to delete this?"

Thanks!

<input name="dele" type="button" value="delete this entry" onClick="passthis('managedbl.php?ac=del')">

0
Comment
Question by:hankknight
1 Comment
 
LVL 10

Accepted Solution

by:
pvginkel earned 1000 total points
ID: 16254574
This should work:

<input name="dele" type="button" value="delete this entry" onClick="if (window.confirm('Are you sure?')) { passthis('managedbl.php?ac=del'); }">
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question