View Full Version : Multiple Popups

03-26-2005, 04:38 AM
Here's what I'm trying to do:

I've got 14 icons, and each links to a javascript window with an html page in it.

I can't figure out how to get each popup window to have seperate content in it though.

Here's my code so far, I've tried to setup 2 popups to seperate pages:

var a;
function popup()
var b;
function popup()


When I click the links on my page, both icons go to the same file sample02.html (so obviously i'm doing something wrong).

My links from the html are simply: (so that should be fine I think)

<a href="samples/sample01.html" onclick="javascript:popup();return false;">
<a href="samples/sample02.html" onclick="javascript:popup();return false;">

03-26-2005, 11:37 AM
your 2 functions must have unique names as only the last one is being called at the moment

and see

Willy Duitt
03-26-2005, 06:59 PM
function popup(URL)

<a href="samples/sample01.html" onclick="popup(this.href);return false;">
<a href="samples/sample02.html" onclick="popup(this.href);return false;">