I'm faced with a situation where my website consists of multiple pages which I've achieved by displaying and hiding divs within a single html file. The issue I'm encountering is that the browser's back and forward buttons aren't functioning as expected due to this method. I'm wondering if there's a way to link these browser buttons to my jQuery show/hide functions. For instance, when clicking the back button in the browser, I want the current div to hide and the previous div to show. Can this be accomplished using just jQuery, HTML, and CSS?