/    Sign up×
Community /Pin to ProfileBookmark

Mozilla bug?

It looks like Mozilla don’t like the
[b]window.opener[/b] reference
It refuses to close an opener when popup is closed

window.onunload=function(){window.opener.close()}

IE ask for close confirm and close it if OK, NS7 close it without comments, but Firefox and Mozilla 1.7b don’t.

Any thoughts?

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@VladdyApr 02.2004 — ? Do not use popups ....
Copy linkTweet thisAlerts:
@KorauthorApr 02.2004 — ? I have to... I have to do a CD, HTML type as client wants to, and I have to open a html page in full window. It is imposible without opening it from an intro page, as popup
Copy linkTweet thisAlerts:
@VladdyApr 02.2004 — I do not think Moz allows closing of the original browser window no matter what.

If it is a CD presentation type project AND it is for Windows environment, consider using HTA
Copy linkTweet thisAlerts:
@KorauthorApr 02.2004 — ? thanks, but no time to, dead line too soon. It is not a big problem, I have just noticed that when verifying with Mozilla. User can close by himself the intro page, but I just wondered why Mozilla do this (the Mozilla 5.0/Gecko for NS7 don't do that, as I have already said)... Thanks anyway.
Copy linkTweet thisAlerts:
@fredmvApr 02.2004 — From the Mozilla JavaScript console:Scripts may not close windows that were not opened by script.
Copy linkTweet thisAlerts:
@steelersfan88Apr 02.2004 — Its open source, I think someone should report this to where it can be optioned yes or no, since this can be important, a sin Kor's case. Maybe I'll do it, the mor epeopel the better the chance, right?
Copy linkTweet thisAlerts:
@KorauthorApr 03.2004 — 
Scripts may not close windows that were not opened by script.
[/quote]


... which is not quite a standard issue, as the page is an opener after all. The security reasons can not be involved in this case. As I have full control over that page ([b]my page[/b] after all) and open a popup from within, it suppose that I can keep a full relationship from opener and child back and forth. I reckon...?
×

Success!

Help @Kor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...