I have a static HTML site that is going to run off CD. It’s going to have two different viewing modes, which I’m going to switch between with JavaScript. I’d like to maintain the viewing mode during the session. It’s a JavaScript-powered document reader thing.
I’m using the query string and a hash to dynamically link to certain things – I’ve got JavaScript that’s ready the query string and hash. My URLs generally look something like this:
index.html?ch2#fig01
where ?ch2 loads chapter 2 and #fig01 jumps to figure 1 in that chapter.
You can use a cookie.
Reading it’s a little more complicated: