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

160
Vistas
JavaScript not firing in addon sidebar?

If I open my sidebar html file the javascript is working as intended, it is a simple toggle that adds/removes a class to show what is the currently selected panel:

function showPanel(panel){
  disablePanels();
  document.getElementById(panel).classList.remove('inactive'); 
}

function disablePanels(){
  document.getElementById("user").classList.add('inactive'); 
  document.getElementById("settings").classList.add('inactive'); 
  document.getElementById("about").classList.add('inactive'); 
}

In my sidebar html file I have these links to trigger:

<a href="#" onclick="showPanel('about');"><i class="fas fa-solid fa-comment"></i></a>

This is working perfectly while I open the html file and click the icons, however when I click them from my addon sidebar/popup it is not working as expected.

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