Category: >> JavaScript >> Confirm Delete Bookmark and Share

<< lastnext >>

Snippet Name: Confirm Delete

Description: Pop-up confirmation box code for moving, deleting, copying, etc.

Comment: (none)

Author: CoderZone
Highlight Mode: JAVASCRIPT
Last Modified: February 27th, 2009

<script type="text/JavaScript">
function confirmDelete(){
var agree=confirm("Are you sure you want to delete this file?");
if (agree)
     return true ;
     return false ;
<a href="somefile.php" onClick="confirmDelete();">Delete File</a>
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© | users online: 10