PDA

View Full Version : Generating a Minimized Pop-Up Window using JavaScript



codeexploiter
09-27-2005, 11:01 AM
Hi Folks,

Is there any method in JavaScript to create a POP-UP Window minimized ie once it is generated it should only be visible on the task bar.

Any help towards my objective would be appreciated

Thanks for your help in advance

Code Exploiter

jscheuer1
09-28-2005, 01:51 AM
I've never seen that so, it probably isn't possible but, may be. I have seen quite a bit of these pop-under windows. As soon as they pop-up, they move underneath the active window. That can be done like so:

var win=window.open('somepage.htm');
win.blur()You can use a more involved window.open() command if you like, naming the new window, giving it properties as well if you like.

But, be careful. This type of 'stealth pop-up' is considered especially obnoxious by most users. It will drive people away from your site if the site isn't already immensely popular and it may do so even with a popular site. Also, many pop-up blockers will prevent it from working at all, especially if it isn't launched as a direct result of the user's clicking on a link and sometimes, even if it is.

codeexploiter
09-28-2005, 05:04 AM
Hi jscheuer1,

Thanks for the help

Code Exploiter