GLightbox is a pure javascript lightbox ... You can listen for events using your GLightbox instance (see example under the table). You can use the on() API method or once(). open Provide a function ...