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

264
Views
why should I click twice on a link to trigger onclick function

In a project, I'm using a xmlhttp to query the db and return data. I pass this data in a link, Everything works file. But I have to click twice on the link to trigger the on click function. Any help please?!

 <script>
            function changeIframeSrc(link) {
                link = link.replaceAll(' ', '+', link);
                let newLink = "https://maps.google.com?q=" + link + "&output=embed";
                document.getElementById('iframe').src = newLink;
            }
        </script>
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!