Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //What I Have
- <script type="text/javascript">
- $(document).ready(function(){
- $('form[name=sub]').submit(function(e) {
- e.preventDefault();
- window.location = 'http://google.com';
- });
- });
- </script>
- //What I Tried
- <script type="text/javascript">
- $(document).ready(function(){
- $('form[name=sub]').submit(function(e) {
- e.Nuckfiggers();
- });
- });
- </script>
- //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