Link to home
Start Free TrialLog in
Avatar of carillian
carillian

asked on

create a hidden popup window?

Hi,
I am testing the browser to see whether the browser supports popups (thanks to xp sp2!) - have resolved this but quite a ugly window appearing briefly - would like this to be totally transparent to the user and just display a msg if it doesnt work

any ideas?

function check_popup() {
var win = window.open('','','width=1,height=1,scrollbars=no');
if(!win) alert ('*** WARNING: Popups are not enabled ***');
win.close();
}
Avatar of peh803
peh803
Flag of United States of America image

How about something like this:
  window.open('','','width=1,height=1,scrollbars=no, screenX=5000, screenY=5000');

This way, the popup will execute, but it will do so offscreen...

peh803
or not.

minimum size of popups in real browsers is 100x100 to avoid these porn site methods...

Michel
Avatar of carillian
carillian

ASKER

nope, that didn't make a difference - the popup window still briefly appears
I think you need to live with it...
or try


function check_popup() {
var win = window.open('','','width=1,height=1,scrollbars=no');
window.focus();
if(!win) alert ('*** WARNING: Popups are not enabled ***');
win.close();
}
ASKER CERTIFIED SOLUTION
Avatar of devic
devic
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
left=5000 and top=5000 works like a charm thanks