Our main website makes full use of the excellent lightbox.js script first published by Lokesh Dhakar . When I first saw the script, I knew it was the answer to the problem of how to display image galleries without Flash or Pop ups.
There is one HUGE problem with the original scripts you will find all over the web. There has been many mods to the script to make it lighter etc, but in all cases, the back button breaks! This is a terrible thing to do.
Hence we decided to set about fixing it. You can see that the back button will work on the custom signs page, but will break on Lokesh’s original demo pages. We needed to make the back button close the lightbox, not take you to the previous page.
Here is the solution:
UPDATE: I have now made a homepage for this called BackBox. You will find all you need there.
This implementation should fix the back button in all modern browsers, leaving you with a cool, usable, standard compliant lightbox!