Click to See Complete Forum and Search --> : Popup troubles


phaedrus10
07-16-2006, 04:46 PM
Ok. I'm new to this site and new to javascript.

I recently added a popup script to an existing web page. The page was working fine before adding the script. Now, the popup works in some browsers, but not others. And the homepage beneath does not load in all browsers.

The page works fine in Safari (yes, I'm using a Mac). The popup works in SeaMonkey, but the page below does not load. The page loads in Explorer, but the popup does not work.

My script is within the body tags. It is

<script type="text/javascript">

var popurls=new Array()
popurls[0]="http://www.sacredwell.org/raffle_home.html"

function openpopup(popurl){
var winpops=window.open(popurl,"http://www.sacredwell.org/raffle_home.html","width=818,height=800,toolbar,location,status,scrollbars,menubar,resizable")
}

openpopup(popurls[Math.floor(Math.random()*(popurls.length))])</script>


Any ideas?

Phaedrus10

JMRKER
07-16-2006, 08:22 PM
Works OK in FF on PC.

Code is currently set-up to randomly go to only one site,
but I assume that was for the test, correct?

Good luck. :)

PS, I would normally not see the page because I block all pop-ups.