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

128
Views
How to add and link multiple html's in chrome extension

I would like to add a page settings.html to my chrome extension to keep the popup.htmlas clean as possible with only a few buttons. All settings should be done in a seperated popup called settings.html.

I have added a settings-btn which should link to the settings.html file. On the settings.html I have a button called 'back-btn' which then should link back to the popup.html after the user has done all settings.

I tried to open it like this from my popup.js (my main GUI):

let settingsButton = document.getElementById('settings-btn');

settingsButton.addEventListener('click', function () {
    chrome.browserAction.setPopup({ popup: 'settings.html' });
});

But that is doing nothing.

What would be the correct way to use more than one "popup" in a chrome extension?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I was thinking way to complicated. A simple href is enough.

about 4 years ago · Juan Pablo Isaza Report
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!