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();
}
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
if(!win) alert ('*** WARNING: Popups are not enabled ***');
win.close();
}
or not.
minimum size of popups in real browsers is 100x100 to avoid these porn site methods...
Michel
minimum size of popups in real browsers is 100x100 to avoid these porn site methods...
Michel
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();
}
function check_popup() {
var win = window.open('','','width=1
window.focus();
if(!win) alert ('*** WARNING: Popups are not enabled ***');
win.close();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
left=5000 and top=5000 works like a charm thanks
window.open('','','width=1
This way, the popup will execute, but it will do so offscreen...
peh803