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

129
Views
Switching between html files inside Firefox extension popup?

I've been trying to port my Chrome extension over to Firefox. Most of the code worked fine, except for this one thing. The extension popup has tab buttons at the top which are supposed to switch between different html files (inside the popup) when clicked. However, when the buttons are clicked, the extension simply freezes/crashes.

Here’s an example of the code for the "contact" tab button:

 contactTab = document.getElementById("contact-tab")
 
 contactTab.addEventListener("click", function() {
     location = "contact.html"
 })

In the Chrome version of my extension I used location.href and it worked perfectly fine, this problem is only on Firefox. I’ve tried using location.href, location and window.location, but nothing has worked.

How do I switch between html files in a Firefox extension popup?

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!