Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
Intro.Js on embed HTML page elements

I have an embedded app (that I made) that I would like to add a guided intro.js tour over, but I can't seem to get it to work. I have tried with embed, object and iframe.

Here is my code so far

var app = document.getElementById("app");
// #app is the embedded site
var doc = app.contentDocument.body.getElementById("header-menu");
// select inner DOM and select an element inside the inner dom #header-menu

introJs().setOptions({
  steps: [{
    title: 'Welcome',
    intro: 'Hello World! ๐Ÿ‘‹' // this part works always
  },
  {
   element: doc, // once this part is added, intro.js stops working as a whole
   intro: '2nd slide'
  }
  ]
}).start();

Let me know if I'm doing anything wrong.

about 4 years ago ยท Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!