Jump to content

CANCEL not working in Safari


Matt_

Recommended Posts

Hi

In the past I remember pressing the CANCEL button and it returns to the previous screen - as expected.

However it is no longer working.  Other javascript actions are working, like the AJAX loading spinner in the top-left corner, AJAX form save, and others.

Perhaps it because I'm using Safari, since Chrome and Firefox perform as expected.  Here is the code Prestashop uses:

Quote

<a href="#" class="..." id="..." onclick="window.history.back();">...</a>

I have another web-application but it's using:

Quote

<input class="..." type="button" value="←&nbsp;Back" onclick="history.back(-1)">

This works fine in all browsers (the ones listed above).

I suggest the input-button-code replace the anchor-code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...