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

263
Views
Tab in Chrome hangs after javascript window.open, resumes when developer tools open

I am using this to open a new tab and then let the controller know the link was accessed:

$("#tosClick").click(function () {
    setButtonStatus();
    $.get("/Home/DisplayTOS")
        .done(function (responseData) {
            if (responseData != "") {
                var myWindow = window.open(responseData);
                $.get("/Home/TOSShown");
           }
       });
});

where tosClick is <span>Agree to <span class="btn-link" id="tosClick">Terms of Service</span></span>.

In Chrome it opens the new tab, gives it focus, and displays the proper page. If a user goes back to the original tab, it is hung, that is nothing works. The pointer does not change based on what it is over, etc. The user can not enter text, click buttons, or do anything on the page.

Closing the newly opened tab has no effect on the original tab. However, opening the developer tools "frees" the original page and everything works. If the developer tools was open when the second page opens, the same "hang" happens. Closing developer tools has no effect, but re-opening it restores the operation of the original page.

Firefox does not have this behavior. Clicking the link on the page opens the new page and everything on the original page still functions.

What do I need to do to allow a user to click the "Show TOS" span, have a new tab open, and still have the original tab function properly?

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!