rain13 Posted June 22, 2015 Share Posted June 22, 2015 Hello. I use hash #fullscreen to tell javascript that gallery image should be shown in fullscreen mode. When I click on fullscreen button, the following line in ran: window.location.hash = "fullscreen"; Now when I click back button, #fullscreen gets replaced by # and fullscreen mode does not go away because page is not reloaded. How to fix this problem? Link to comment Share on other sites More sharing options...
dsonesuk Posted June 22, 2015 Share Posted June 22, 2015 (edited) Use local storage to save current state and retrieve current state loading of page. Edited June 22, 2015 by dsonesuk Link to comment Share on other sites More sharing options...
rain13 Posted June 22, 2015 Author Share Posted June 22, 2015 (edited) tnx Edited June 22, 2015 by SoItBegins Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now