It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes pop in IE vs Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "pop in IE vs Firefox" Watch "pop in IE vs Firefox" New topic

pop in IE vs Firefox

jiju ka
Ranch Hand

Joined: Oct 12, 2004
Posts: 306
We are facing a problem with firefox.

We have a customer facing application. 56 percent of our users are IE, 42 are firefox. We need to popup a new survey.

We are using on page unload to popup. We don't have any issue with this in IE. But in firefox, netscape and safari we have an issue in how works.

Issue:The current window displays the normal business page. If the user goes away to another url or closes the window a popup with a survey popus up. We are using to open the new window. In firefox, if the user closes the current window, the popup will come up flickers and goes away. The user is not able to see the popup window.

In firefox a child window is opened when we make a javascript call But when the javascript method finishes the parent window is closed forcing to close the child window too.

We want the child window to stay even when the parent is closed.

Does anybody encountered this? We really appreciate if anybody could suggest a solution.

Other options we tried
We tried getting an anchor and clicking on the anchor.
But that didn't help.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
It is called a pop up blocker and there is going to be no way to get around it unless people add you to their safe list. IE7 Users should also run into this problem since they too havea pop up blocker installed. People who have the google toolbar or other toolbars in IE6 have pop ups blocked.

jiju ka
Ranch Hand

Joined: Oct 12, 2004
Posts: 306
Thanks for your reply.

The issue is not with popuop blocker. We are checking whether popup blocker is active on user's browser and the survey-popup displays only if popup blocker is not active.

The issue is with parent child window relation in firefox and similar mozilla based browsers. In firefox the child window closes automatically when the parent window closes. In IE the child window stays even if the parent window closes. In this particular scenario the child window is created from a script running in parent window.

I think the issue will be clear with above paragraph.

The solution we expect is for the pop up window to stay even if the parent window is closed.

if user types another url in the address bar, the page's onunload function triggers the and popup is displayed. Even in firefox, the popup stays in this case (because the parent is not closed.) So the problem is not with popup blocker.

[ September 07, 2007: Message edited by: jiju ka ]
[ September 07, 2007: Message edited by: jiju ka ]
I agree. Here's the link:
subject: pop in IE vs Firefox
It's not a secret anymore!