simple javascript Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    simple javascript Help

    good day guys, please i want a javascrip code that works thus;

    i have a php file del.php what it does is to delete file from my data base, so i want to a javascript code that will ask "are you sure you want to delete This file?" then if the user click yes, it wil then delete the file or other wise

    #2
    Use pop up bro

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function show_confirm()
    {
    var r=confirm("Press a button!");
    if (r==true)
      {
      alert("You pressed OK!");
      }
    else
      {
      alert("You pressed Cancel!");
      }
    }
    </script>
    </head>
    <body>
    
    <input type="button" onclick="show_confirm()" value="Show a confirm box" />
    
    </body>
    </html>
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment

    Working...
    X