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

139
Views
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
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!