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.
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.
Share Improve this question asked Jun 26, 2014 at 12:51 SamSam 5527 silver badges14 bronze badges1 Answer
Reset to default 21Set option exitOnOverlayClick
to false before you call start
:
introJs().setOptions({
exitOnOverlayClick: false
}).start();
Here are all the available options.