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 Window.open 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 window.open 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 Window.open 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.
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.
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.
Joined: Oct 12, 2004
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 window.open 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 window.open 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 ]