CoderZone.org

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
Language: JAVASCRIPT
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 ;
else
     return false ;
}
</script>
 
 
<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 
© coderzone.org | users online: 10