Lightbox to appear when the browser is closed / or exit course when lightbox is closed

Jun 13, 2021

Hi all

Is there are way to make a lightbox (perhaps a tab in the player) appear whenever the user closers the browser window. 

What I want to do is to provide a reminder and some additional information each time the user leaves the course.  Perhaps it needs some javascript?

Kind regards

Jen 

 

1 Reply
Jennifer Munro

Hi Matthew,

That's a good point.  I am laughing at myself - was too busy to think straight.  I was hoping for magic :)

I have a course that is not linear and the user can leave and come back at any time, but I'd like to give them some important information each time they exit the course.  It is expected that they will enter the course several times over a period of months.

I have not included a close button because there are already a lot of buttons and I think that most people will use the browser button to close anyway. If I did include a button that triggers a lightbox with the info, is there a way to trigger exit course when closing the lightbox?

Thanks in advance for your support.

Kind regards

Jen