Forums

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

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44617
    arkader
    Participant

    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

    #134392
    Anonymous
    Inactive

    By “previous button” are you referring to the browser’s back button that takes you back to the previous visited link?

    #134394
    arkader
    Participant

    Hi Jarolin,

    Indeed, i’m looking to detect the browser back button,
    and to redirect the user to productions.php page ;)

    #134395
    CrocoDillon
    Participant

    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/

    #134627
    arkader
    Participant

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.