View Full Version : Diff type of Multipul Popup Problems


4eva_wishes
07-23-2004, 07:11 AM
I'm doing some popup windows, they're one after the other:

<script language="javascript" type="text/javascript">
//<!--
function popup()
{ window.open ("http://www.freewebs.com/angels_hope/luvtest.htm","popup","width=305,height=515,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
--></script>.::<a href="javascript:popup()">S+S?</a>::.<br>

<script language="javascript" type="text/javascript">
//<!--
function popup()
{ window.open ("http://www.freewebs.com/angels_hope/reflex.htm","popup","width=320,height=430,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
--></script>.::<a href="javascript:popup()">Dai's Reflex</a>::.<br>

<script language="javascript" type="text/javascript">
//<!--
function popup()
{ window.open ("http://www.freewebs.com/angels_hope/ask.htm","popup","width=320,height=470,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
--></script>.::<a href="javascript:popup()">Ask Misha</a>::.<br>

they all open us as the last one 'Ask Misha' does anybody know why???

kittycat
07-23-2004, 05:24 PM
You have all of them named the same thing -- popup. You need to change it so that they're different, eg popup1, popup2
So something more like this should work...
<script language="javascript" type="text/javascript">
//<!--
function popup1()
{ window.open ("http://www.freewebs.com/angels_hope/luvtest.htm","popup","width=305,height=515,loca tion=0,menubar=0,resizabl e=0,scrollbars=0,status=0 ,titlebar=1,toolbar=0") }
--></script>.::<a href="javascript:popup1()">S+S?</a>::.<br>

<script language="javascript" type="text/javascript">
//<!--
function popup2()
{ window.open ("http://www.freewebs.com/angels_hope/reflex.htm","popup","width=320,height=430,loca tion=0,menubar=0,resizabl e=0,scrollbars=0,status=0 ,titlebar=1,toolbar=0") }
--></script>.::<a href="javascript:popup2()">Dai's Reflex</a>::.<br>

<script language="javascript" type="text/javascript">
//<!--
function popup3()
{ window.open ("http://www.freewebs.com/angels_hope/ask.htm","popup","width=320,height=470,loca tion=0,menubar=0,resizabl e=0,scrollbars=0,status=0 ,titlebar=1,toolbar=0") }
--></script>.::<a href="javascript:popup3()">Ask Misha</a>::.<br>