I'm creating an image slider in css3 with the :target selector. I have a next and previous button that are executing this line of javascript
window.location = "#image" + image;
The problem is that if i click the back button of my browser, it shows the previous image of the slider. I want the back button to go to the previous page, not the previous anchor.
Thanks for the help