Link redirect is not working in Firefox

1

Well, I'm in the final stages of developing a website, and there was a problem with browser Firefox , on all other browsers tested, a link within a button worked, however, firefox , it reads the cancel / return button as a submit button, but it is only there as a simple type="button"

I wanted to know if there is any way that I can solve the problem with javascript or Jquery .

* Browsers tested [Chrome, Firefox, Opera, Safari Windows, Safari IOS, IE9 +]

    
asked by anonymous 24.10.2016 / 14:08

1 answer

2

You can do so, when your #form receives a submit, you disable it and perform your action, which in the case would be back / cancel.

With this return false; the submit will have no further action.

$('#form').submit(function() {
    // sua ação.
    return false;
});

Hugs! =)

    
24.10.2016 / 14:43