View Full Version : multiple pop-ups on one page
allen
10-08-2002, 09:20 PM
http://wsabstract.com/popwin/index.shtml
Hi, I made a pop-up window with this pop-up generator above, it's cool, but does anyone know how to make more than one pop-up? I need numerous links on my page and need them all to pop-up in new windows.
Specifically, I need pop-up windows without the menu bars, toolbars, nothing.
ecnarongi
10-08-2002, 10:22 PM
put this is the head
<script>
function popWin(which)
{
window.open('which','','width=200,height=200')
}
</script>
you can change the width and height
and inside the tag of everything you want a popup to come from you put
onClick="popWin(URL)"
where URL is the page or graphic that you want in the pop up
hope that helps :D
boywonder
10-09-2002, 02:37 AM
If you're passing the URL to the function popWin, use single quotes around the url you send.
Then in your window.open arguments, do not use quotes around the the passed argument, in this case which.
hope that helps
allen
10-13-2002, 02:37 PM
Ok I've got it solved, thanks everyone :cool:
Barry
10-30-2002, 02:16 PM
Using the code generator from
http://wsabstract.com/popwin/index.shtml
I was able to generate a script to open muliple windows but can anyone show me how to modify this to pass a url to the code. Also how about having all the windows remain visible, currently the 2nd or subsequent window disappears each time the link is clicked. It would be nice to have them all on top of each other.
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="thankyou.html"
winpops=window.open(popurl,"","width=400,height=338,toolbar,")
}
</script>
<a href="javascript:openpopup()">Click here to open window</a>
thanks
Barry
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.