I want to disable back button. I have searched EE already but didn't find solution yet. Actually I am using the following code:
if(window.history.forward(1) != null)
but that works and behave incorrectly when I try to go back to last 2nd 3rd or 4th and so on back from the back button history of visited page.
I have a dynamic page like: http://mysite.com/category.php?page=1
When I keep on going till page 3, 4, 5, 6, and so on. Lets say I am on page 6 and want to go back to page 1 with the help of back button history of visited pages. It first loads page 1 then 2, then 3, then 4 , then 5 and then 6. I want to load page 6 directly because I was on page 6 and I tried going back to page 1. It should not traverse the page from 1-6.