Forum

[SOLVED] How can i ...
 
Notifications
Clear all

[SOLVED] How can i keep a popup div always open, even on page refresh/reload ???

3 Posts
2 Users
0 Likes
489 Views
(@subzero)
Posts: 149
Member
Topic starter
 

I use the following code to show/hide a div using jquery toggle. I try to find a way so browser can remember the last status of the popup div. What i want is to keep this div always open even on page refresh/reload until a user close it. I think that i have to use html5 web storage and js but i don't know how can i apply it on my code.

HERE IS THE FIDDLE CODE

Frontend Dev / UX-UI Designer / Illustrator / Father / Linux Enthusiast / Minimalist

 
Posted : 20/10/2019 1:53 pm
Defected
(@dftd)
Posts: 614
Honorable Member Admin
 

Here's the updated fiddle with a solution from Stack Overflow.

Available for custom Osclass development. www.defected.dev

 
Posted : 20/10/2019 2:55 pm
(@subzero)
Posts: 149
Member
Topic starter
 

Here's the updated fiddle with a solution from Stack Overflow.

Thank You [member=3]WEBmods[/member] 😉

Frontend Dev / UX-UI Designer / Illustrator / Father / Linux Enthusiast / Minimalist

 
Posted : 20/10/2019 3:36 pm
Share: