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
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