5

Wanted to incorporate the intro.js tour plugin but when checking out the plugin, the document didn't highlight any way of preventing the closing of the tour by a click outside the tour section. I would rather have a "End Tour" button which the user can click to end the tour rather than them clicking outside by mistake and then having to start all over again.

Sam
  • 532
  • 6
  • 12

1 Answers1

18

Set option exitOnOverlayClick to false before you call start:

introJs().setOptions({
  exitOnOverlayClick: false
}).start();

Here are all the available options.

Gildor
  • 2,484
  • 23
  • 35