Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
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 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda