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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:50:32+00:00 2026-05-30T07:50:32+00:00

I am encountering a bug-like problem in Opera when trying the get the closed

  • 0

I am encountering a bug-like problem in Opera when trying the get the “closed” property of a popup window.

Here is the actions I performed.

>>> win = open('some url in the same domain with the parent window','name','feature')
Window 
>>> win.closed //at this point, the popup window is not closed
false
>>> win.closed //at this point, the pop window is closed
false //this should be true

The second “false” should be “true” as I may expect.

I ran it in Chrome and Firefox, it is all right.

Any clue?

PS:
I am using Opera 11.2, Linux

  • 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-30T07:50:33+00:00Added an answer on May 30, 2026 at 7:50 am

    This works fine in my version of Opera, at least in the test case I put together here.

    I can close the window by hand or with the button, and the closed property shows the correct value.

    I am using Opera version 11.61 on linux.


    Here is the code for the test case.

    var popup = {};
    
    function pop() {
        popup = window.open('foo', 'foo', "menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=200,height=200" ); 
    }    
    function unpop() {
        popup.close();  
    }
    function check() {
        alert(({}).toString.call(popup) + ' closed: ' + popup.closed);
    }
    
    var b1 = document.body.appendChild(document.createElement('button'));
    var b2 = document.body.appendChild(document.createElement('button'));
    var b3 = document.body.appendChild(document.createElement('button'));
    
    b1.textContent = 'open';
    b2.textContent = 'close';
    b3.textContent = 'check';
    
    b1.onclick = pop;
    b2.onclick = unpop;
    b3.onclick = check;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am encountering a problem with string formatting while trying to get only the
I'm encountering a very strange problem: my delete actions in rails don't work anymore.
Encountering a weird problem here. I'm developing a game for my school project (non-commercial),
I am encountering a problem assigning classes and hidding and showing td 's. Here
I am encountering a strange problem. I am trying to generate a matrix with
I am encountering a strange problem when trying to create two dropdowns where the
Hi i am encountering problems trying to post a WebRequest under Https. i received
I am encountering the following bug. I have a class Foo . Instances of
I'm writing a simple nD-vector class, but am encountering a strange bug. I've stripped
I am encountering a potential bug while using jQuery 1.7.1 to animate the height

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.