- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › How to remove a lightbox when the back button is clicked
Hi Javascript masters,
I’m working on a new website, and i have some issues with the lightbox.
When i click on a project, an overlay div is displayed.
When I click on the close button, the overlay div is properly removed,
I would like to apply the same effect when the browser previous button is clicked (for firefox and chrome).
Can someone help me please !
here is the beta website : http://emalsaifi.com/purprodv4/productions.php
Emal
By “previous button” are you referring to the browser’s back button that takes you back to the previous visited link?
Hi Jarolin,
Indeed, i’m looking to detect the browser back button,
and to redirect the user to productions.php page ;)
You can’t do that directly, but I found a workaround: http://www.webdesignerdepot.com/2013/03/how-to-manage-the-back-button-with-javascript/
Hi CrocoDillon,
Sorry for my late reply, thank you for the link
i’ll try it this w.e, and i’ll keep you posted :)
Cheers