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
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
closedproperty shows the correct value.I am using Opera version 11.61 on linux.
Here is the code for the test case.