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

164
Views
How do I prevent a link inside an iframe from opening in a new tab?

I'm new to Html and Javascript. I've been making an iframe browser with the help of an extension. see my GitHub page One of the issues my users face is that some links and redirects that occur in the iframe open in a new tab. How do I prevent this and allow the redirects and links(when clicked on) to open in the iframe? If not possible, is there a way to get the URL of the link before the page is redirected?

I tried adding <base target="_self"> in the head of the page.

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!