Hi,
I would like the user to go to a specific web page when he closes a gallery, even if he left the gallery before viewing all of the images.
Thanks
Code: Select all
hs.Expander.prototype.onAfterClose = function() {
if (this.isClosing) {
location.assign("http://example.com");
}
}
It's MAGIC !MisterNeutron wrote:You should be able to use the onAfterClose event:
Make sure you're using highslide-full.js or highslide-full.min.js, since this requires "events."Code: Select all
hs.Expander.prototype.onAfterClose = function() { if (this.isClosing) { location.assign("http://example.com"); } }