I'm trying to implement following functionality:
Alternatively, instead of page_067.jpg pure image file it could be something like page_067.htm with the image embedded.
What would be the best approach?
Popstate event seems like what you are looking for. It could be triggered on back or forward button presses in the browser.