Advertisement
Guest User

Untitled

a guest
Jun 7th, 2013
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script language=javascript>
  4. function validate()
  5. {alert("validate");
  6. document.form1.action="validate.php";
  7. document.form1.submit();
  8. return false;
  9. }
  10. function del()
  11. { alert("delete");
  12. document.form1.action="delete.php";
  13. document.form1.submit();
  14. return false;
  15. }
  16. </script>
  17.  
  18. </head>
  19. <body>
  20. <form name=form1 method=post>
  21. <input type=submit value='add this bug with main bugs' OnClick=validate()>
  22. <input type=submit name=delete value='delete this bug' OnClick=del()>
  23. </form>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement