Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:06:11+00:00 2026-06-10T11:06:11+00:00

Using the latest version of Chrome on Mac OS 10.7. I assume it is

  • 0

Using the latest version of Chrome on Mac OS 10.7.

I assume it is some clever javascript that is enabling the folks at this webpage:

http://www.chairworks.com/

…to close my (the parent) page which opened their (chairworks.com) page in the first place.
I did not open them with javascript, but with an <a> tag with the target="_blank" attribute.

If I disable javascript, then the behavior stops.

<a href="http://www.chairworks.com" target="_blank">www.chairworks.com</a>

I would expect the page at chairworks.com/ to simply open in another tab/window… but what I find is that as soon as the new browser tab opens, it closes, and then my page (the parent tab/window) gets redirected to the chairworks.com page.

Kinda rude.

Can someone point me to what code enables them to do that? And how do I prevent it? (Assuming I want a link to behave as expected, such as in my demo page.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:06:13+00:00Added an answer on June 10, 2026 at 11:06 am

    This is the script they are using:

    setTimeout('redirect_page()',0);
    function redirect_page(){if (window.opener) { window.opener.location.href = '/home.html'; window.close(); } else { location.href = '/home.html'; }}
    

    As to how to circumvent it (just an idea):
    Create your own blank page, with it’s source set to about:blank. When it loads (or after a time-out) you could write some code to that window that will then open the offending link.
    Then the offending link just closes your buffer-page. F*ck ‘m!! Power to the user!

    Edit: looks like you could also name your page home.html hehe, but that is not such a workable solution..

    Final Edit: SIMPLE LOGIC people…
    <a href="http://www.chairworks.com/home.html" target="_blank">www.chairworks.com</a>
    works for everyone, no javascript needed.
    See this working jsfiddle example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this edit-in-place widget jquery.jeditable.js . On Windows 7, in Chrome (latest version
I'm using the latest version of Chrome (14.0.x) to debug my javascript (latest jQuery)
UPDATE: Please note that I am seeing this issue only in Chrome (latest version).
I'm using XAMPP (latest version) on OS 10.6.2, that's bundled with PHP 5.3.0 I
I'm new to SVN. I'm using the latest version (svn 1.6.9, TortoiseSVN 1.6.7.18415). Some
I'm using the latest version of Firefox and Chrome on Win XP. I want
Im using latest TCPDF version(5.9). But have some strange problems with encoding. I need
Using the code below, both Chrome and Opera (latest versions supporting border-radius) on Mac
Using the latest version of Resharper (4.5.x) with VS2008. Every now and then (pretty
I'm using the latest version of the jquery plugin DataTables and I tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.