Skip to Content
TourExamplesConfirm before exit

Confirm before exit

Use the onBeforeExit callback to get a confirmation before closing the tour:

introJs.tour().onBeforeExit(function () { return confirm("Are you sure?"); }).start()
Image alt text
The Quaco Head Lighthouse is a well maintained lighthouse close to St. Martins. It is a short, beautiful walk to the lighthouse along the seashore.