Posted By

limonn on 10/13/06


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rnrleachryan


warning delete


 / Published in: JavaScript
 

URL: http://newsourcemedia.com/index_view.php?id=55

  1. <script>
  2. function confirmDelete(delUrl,name_cat) {
  3. if (confirm("Are you sure you want to delete \nrow number \"" name_cat "\"\nfrom the database")) {
  4. document.location = delUrl;
  5. }
  6. }
  7. </script>
  8.  
  9. <!-- now the html link -->
  10.  
  11. <a href="javascript:confirmDelete('yourpage.php?delete=293','293')">Delete</a>

Report this snippet  

You need to login to post a comment.