# Problem with CSS/Jquery and the Back Button

**URL:** <https://forum.kirupa.com/t/problem-with-css-jquery-and-the-back-button/313391>\
**Category:** web dev\
**Created:** [August 28, 2010, 2:54am UTC](https://forum.kirupa.com/t/problem-with-css-jquery-and-the-back-button/313391 "2010-08-28T02:54:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freebird](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@freebird](https://forum.kirupa.com/u/freebird)\
**Post date:** [August 28, 2010, 2:54am UTC](https://forum.kirupa.com/t/problem-with-css-jquery-and-the-back-button/313391/1 "2010-08-28T02:54:42Z")

</div>

OK, I have this cool navigation bar (accordion style) that works well part of the time. It was made with CSS and JQuery.

Works GREAT when you are clicking links from page to page. But the second you start hitting the back button or forward button the thing collapses. It’s like it forgets it’s CSS settings or something.

Can anyone help me iron out what’s going on?
