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

136
Vistas
Is there a way to check if some JavaScript is changing some specific link in DOM?

If someone applies Google Translate to a site of mine, it usually changes href attribute values on anchors. This prevents Bootstrap tabs to work. Is there a way to check if some JavaScript is changing attributes of a specific class of anchors? I tried

jQuery(document).ready(function(){
    jQuery("a.nav-link").bind('change', function(event) {
        console.log( jQuery("a.nav-link").attr("href") );
    });
});

but it does not work. I see nothing in console after translation.

Here is an example:

Go to

https://genealogia.dejudicibus.it/index.php?f=dejudicibus&b=ventimiglia&c=xiv&p=13__a

This is made by using the Bootstrap tabbable divisions. If you click on "Fonti" you see the second section. If you INSPECT code, you can see that the href is simply a fragment, that is,

<a class="nav-link" id="tab-t13__a-1" data-toggle="tab" href="#t13__a-1" role="tab" aria-controls="t13__a-1" aria-selected="true">Fonti</a>

Now, if you click on the top-right white icon to translate to English (not the automatic translator popup a browser may offer)...

enter image description here

... you can see that the link is changed to

<a class="nav-link" id="tab-t13__a-1" data-toggle="tab" href="https://genealogia-dejudicibus-it.translate.goog/index.php?_x_tr_sl=it&amp;_x_tr_tl=en&amp;_x_tr_hl=en-US&amp;_x_tr_pto=wapp#t13__a-1" role="tab" aria-controls="t13__a-1" aria-selected="true">
  <font style="vertical-align: inherit;">
    <font style="vertical-align: inherit;" class="">Sources</font>
  </font>
</a>

That breaks the Bootstrap mechanism. If you click on sources nothing happens.

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