# Pop Up Windows and Ad (popup) Blockers

**URL:** https://forum.kirupa.com/t/pop-up-windows-and-ad-popup-blockers/103061
**Category:** Uncategorized
**Created:** [March 1, 2004, 3:32pm UTC](https://forum.kirupa.com/t/pop-up-windows-and-ad-popup-blockers/103061 "2004-03-01T15:32:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SteadyScene](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@SteadyScene](https://forum.kirupa.com/u/SteadyScene)
#### Post date: [March 1, 2004, 3:32pm UTC](https://forum.kirupa.com/t/pop-up-windows-and-ad-popup-blockers/103061/1 "2004-03-01T15:32:13Z")

</div>

Received feedback on my site and while the overall general consensus has been positive, most of the headache and concerns have been with the POP UP window to launch my site.

Description:  
My site has a basic index.html that has a javascript “body on load” function which launches a 700x400 window that contains my flash website. See it here: [www.steadyscene.com](http://www.steadyscene.com)

Issue:  
The issue is that pop blockers, anti virus programs are preventing the site from opening in a new launched window.

Question:  
Fundamentally, what is the best way to launch a new window so that the window is not blocked?

Here is the script I am using:  
\<SCRIPT LANGUAGE=“JavaScript”\>  
\<!-- Begin  
function popUp(URL) {  
day = new Date();  
id = day.getTime();  
eval(“page” + id + " = window.open(URL, ‘" + id + "’, ‘toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=400,left = 162,top = 184’);");  
}  
// End --\>  
\</script\>

and then in the body: BODY onLoad=“javascriptopUp(‘enter.html’)”

Final thoughts:  
Just as a observation, when I go to sites like [www.callofduty.com](http://www.callofduty.com) they use a swf file (ENTER) which launches a new Window. Even with pop up blocker enabled, it allows their window to be launched. What am I missing?

Regards,  
Daniel
