gevo12321 Posted June 25, 2007 Share Posted June 25, 2007 hi i made a delete button for some things in a database and i was wondering if there was any way that i could make it ask me if im sure i want to delete something from the database before deleting you know like and alert box or something thank you Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted June 25, 2007 Share Posted June 25, 2007 Use javascript alert popup. Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 25, 2007 Share Posted June 25, 2007 hey, try this code <from name="frmdel"> <table> <tr><td><input type="submit" value="delete" name="del" onclick="return deldel()"></td></tr> </table> </form> <script language="javascript"> function deldel() { var agree=confirm("Do you want to delete"); if(agree) return true; else return false; } </script> Quote Link to comment Share on other sites More sharing options...
gevo12321 Posted June 25, 2007 Author Share Posted June 25, 2007 thank you very much rock on Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.