Jump to content
Sign in to follow this  
Manuel

Javascript Hide/Show History/Bookmark

Recommended Posts

Hei Guys,

w3schools is so awesome. I learned a lot About webdesign but now I've been comming to an end.

On my Webpage I got a Nav-bar with jquery-buttons that hide/Show divs. So here Comes my Question.

Is there any solution to save the visibility Status of These divs when user adds my page to bookmarks?

Is there any solution to make last Status of divs available via browser button BACK?

I was reading About this Problems some time ago but was not able to figure out were.

I'm really open to any solution. Even a complete redesign of the page is possible if the solution is better.

Thanks a lot.

Manuel

Share this post


Link to post
Share on other sites

You would have to save the state in something like localStorage or using cookies, and when the page loads you check for that saved state information and apply it to the page.

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...