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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:17:39+00:00 2026-06-04T07:17:39+00:00

I open a new window with window.open() to redirect users to the oauth login

  • 0

I open a new window with window.open() to redirect users to the oauth login page. However, after successful login when the user is redirected back to my app the previous window with the window.open call does not close itself in ios.

On the iPad it would close the wrong window and on the iPhone it wouldn’t close the window at all. The code works fine on Android and on desktop versions of Chrome and Firefox.

After much rooting about, I found a fix (posted below). If anyone has any better ideas or root causes, please post here.

  • 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-04T07:17:40+00:00Added an answer on June 4, 2026 at 7:17 am

    After some searching, I found this tweet which posts a workaround – https://twitter.com/#!/gryzzly/statuses/177061204114685952 by @gryzzly

    Copied here in full

    window.close() doesn’t work on iOS after window.open()ing or
    target=”_blank”? do setTimeout(window.close, timeout); where timeout >
    300.

    This along with removing a .focus() in which I focus on the parent window before closing the new window completely solved the problem for me.

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

Sidebar

Related Questions

I want to use response.redirect to open page in new window or tab. I
Can anybody suggest how we can open the page in new window using Response.Redirect
I need to open a new window from code-behind on post-back if a specific
i use the code below to open a new window when a user drops
If I open a new browser window and open a new page in it
I have a page which open a new window with External Url (Twitter Authentication
I have a need to open a new window as well as redirect current
I'm trying to open a page in new tab/window on button click.I tried in
I have window form in my WPF Application when I open new window from
I have some problem with my open new window popup which it can read

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.