Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda