Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2066
  • Last Modified:

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();
}
0
carillian
Asked:
carillian
1 Solution
 
peh803Commented:
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
0
 
Michel PlungjanIT ExpertCommented:
or not.

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

Michel
0
 
carillianAuthor Commented:
nope, that didn't make a difference - the popup window still briefly appears
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Michel PlungjanIT ExpertCommented:
I think you need to live with it...
0
 
Michel PlungjanIT ExpertCommented:
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();
}
0
 
devicCommented:
window.open('','','width=1,height=1,scrollbars=no, screenX=5000, screenY=5000');

should be:

window.open('','','width=1,height=1,scrollbars=no,left=5000,top=5000');

0
 
carillianAuthor Commented:
left=5000 and top=5000 works like a charm thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now