javascript - Detect state of object from previous page -


I am working on a mobile site that has a bunch of .html pages in the structure.

In the header of the site I have a simple show / hide button that uses jquery toggle to show or hide the banner works perfectly But when you switch to another page, clearly the banner is displayed because it can not tell that on the previous page you have chosen the banner "hide" because it is providing a new .html page.

Anyways the question is with Javascript, can I find out about the previous page that the banner should be "shown" or "hidden" when loading the next page.

My initial thought was that a specific hash tag that can be picked up using JS and indicates that the banner should be hidden or shown (depending on the hash). I'm not in love with the hash idea because this is the best one ugly hack.

Any ideas about finding a property of the previous page which I can use in jquery or js banner show / hide on property

store.js is designed for this. This is a cross-browser JavaScript library for storing locally



Comments