Advertisement
FaZeMurdock

Nuck Figgers

May 19th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. //What I Have
  2. <script type="text/javascript">
  3. $(document).ready(function(){
  4. $('form[name=sub]').submit(function(e) {
  5. e.preventDefault();
  6. window.location = 'http://google.com';
  7. });
  8. });
  9. </script>
  10.  
  11.  
  12. //What I Tried
  13. <script type="text/javascript">
  14. $(document).ready(function(){
  15. $('form[name=sub]').submit(function(e) {
  16. e.Nuckfiggers();
  17. });
  18. });
  19. </script>
  20.  
  21. //It's supposed to execute the function Nuckfiggers but instead goes back to the original page
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement