最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Intro.js - any way to prevent closing of tour when clicking outside? - Stack Overflow

programmeradmin0浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 21

Set option exitOnOverlayClick to false before you call start:

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

Here are all the available options.

发布评论

评论列表(0)

  1. 暂无评论