-2

I'm currently new to intro js and I have this big project up

I need to start a tour on page 1, that will continue on page 2, then it needs to go back to page 1 and start another tour that will continue on page 3

I hope someone can help me :(

nikssss
  • 1
  • 2

1 Answers1

0

https://github.com/usablica/intro.js

There is a multi-page demo in the examples/ folder.

  • Clone the project, open examples/index.html file with your browser.

  • Click Multi-Page introduction and view the source.

At the bottom you will find

<script type="text/javascript">
  document.getElementById('startButton').onclick = function() {
    introJs().setOption('doneLabel', 'Next page').start().oncomplete(function() {
      window.location.href = 'second.html?multipage=true';
    });
  };
</script>
  • Use that to get started.

  • Post example code to github or something.

  • Update your question when you get stuck.

Thunder Rabbit
  • 5,405
  • 8
  • 44
  • 82