2

After running some usability tests, I found that participants opened a jQuery Lightbox to view larger images. Then rather than clicking the 'close' button they simply hit the browser back button. That sends them to the last page rather than closing the lightbox.

Does anyone know a jQuery photo gallery that supports the described back button behavior? Or has anyone modified their jQuery Lightbox to do so?

3 Answers 3

3

Try the jQuery history plugin here. You will probably have to add some custom hook function to modify the behavior of Lightbox, but it shouldn't be too hard.

0
2

It's a bit weird to reply to question that was asked 5 years ago, but I released a gallery script that can do this - http://photoswipe.com/

1
  • Even 5 years later, such a library is very useful. Thanks for sharing, I'll give it a try!
    – DavGarcia
    Dec 11, 2014 at 22:43
0

I've got another solution for You. Jquery mobile suports navigation controll. Have a look at this link how to control back button event in Jquery mobile?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.