Problem with window.history.back()

I have used a "return" button with the Javascript code window.history.back() to return the user to the previous page, in the same way as if they pressed the back button.

I appears that for some users, this is apparently not working, and in fact backs them up several pages. I am wondering what the problem is, as on our test systems, this never occurs.

In particular, I am wondering if this problem could be browser specific, such as with Safari, as I have seen certain times when such things don't work right with this browser.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

try   history.go(-1)
try window.history.back(-1) to control browser to go back for 1 page only.

you can try following


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jasimon9Author Commented:
I am going out of town for a few days. Won't be able to evaluate the responses until new week.
jasimon9Author Commented:
I have tested the history.go(-1) version and it does not break our existing page behaviour. Unfortunately, we cannot reproduce the problem on our system, so we will not know whether it corrects the problem for "certain" users, unless over a long period of time the complaints do not continue.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.