Close jQuery LightBox with JavaScript

Question:

I have loaded one page into html5lightbox and in that page i have one button. on that button i want to close html5lightbox and redirect to other page. so, any method of custom event for that please?

Answer:

You can call the following JavaScript function to close the lightbox effect:

html5Lightbox.finish();

html5Lightbox is a global variable created by the script.