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 4570886
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:25:33+00:00 2026-05-21T19:25:33+00:00

I have a Twitter authorization flow that works perfectly in most browsers. You click

  • 0

I have a Twitter authorization flow that works perfectly in most browsers. You click “Add a Twitter Account” which has a target="_blank" attribute that sends the user over to Twitter without leaving my site, they authorize, and Twitter sends the user back to a page on my site. That page triggers something with window.opener (the parent window) and then closes the window.

The event is properly triggered on the original window, however there is a case when a user has multiple tabs open in Safari (and maybe other browsers), the new window will open in the last tab, and thus when I execute window.close(), it takes the user to whatever the last tab is now instead of my site. Is there any way to bring the user back to my site aside from removing target="_blank" and going through the flow that way?

  • 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-05-21T19:25:34+00:00Added an answer on May 21, 2026 at 7:25 pm

    No, that’s a browser configuration, and allowing a script to access it would be a security flaw

    What you can do is to not use window.open, but rather open it in an iframe.

    There’s a lot of jQuery plugins that do this for you, take a look at ThickBox’s iFrame examples

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

Sidebar

Related Questions

I have been using Twitter's Bootstrap Tooltip plugin . This works perfectly fine except
So, I'm extending a social media class that I have (that works with Twitter,
I have a Twitter widget on my site that displays our company's most recent
I have multiple twitter share buttons on a page, I want to identify which
We have bundles for Facebook & Twitter authorization for a Symfony2 app. But what
I have been working on an iPhone app that has a feature of uploading
I have twitter status updates showing on the sidebar of the blog which often
I am currently working on app which is supposed to have Twitter integration. The
I want to stylize input field as on twitter for authorization. I have the
I have twitter bootstrap setup to build in a new project, but am getting

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.