Jump to content

Carrying an on-state to the next page on re-direct


Recommended Posts

Hi all, 


I really need some help on this one. I've created a very complex page with a number of buttons that load content in dynamically.  (There are quite a few combinations)


What I would like to know is, is there a way to hard-code if an option is selected on one page that that selection stay open on another page ? 


For example I'm on the globe.html page having selected option 3. I open the view.html page and that page starts on option 3 due to it being selected on the previous page. 


Any help would be very appreciated :) 



Link to comment
Share on other sites

Seeing as though you're just using html, and no php, you'd want to use javascript to set a cookie, or to use local storage.


You might also be able to set the values in a GET variable, which is appended to the URL in the address bar, and then pull them in on the view.html page using javascript again.


Hope that helps you get a start.



Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.