earth2mac
09-27-2005, 02:50 PM
How to have multiple links on a single page and each will go to it's own popup window? This is the code I have used, but how to get other links with seperate ones:
This is in the head:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
theUrl="test.html";
function doThePopUp() {
reWin = window.open(theUrl,'determined','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollba rs=no,resizable=no,width=200,height=300,top=100,left=100');
}
// End -->
</script>
</HEAD>
This is the link:
<BODY>
<a href="javascript:doThePopUp()">Click here for test</a>
In popup page:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
lockU = 1
function doAgain() {
if (lockU == 1) {
reWin=window.open(theUrl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=n o,resizable=no,width=530,height=435,top=100,left=100')
}
}
// End -->
</script>
It works just for this one...
This is in the head:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
theUrl="test.html";
function doThePopUp() {
reWin = window.open(theUrl,'determined','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollba rs=no,resizable=no,width=200,height=300,top=100,left=100');
}
// End -->
</script>
</HEAD>
This is the link:
<BODY>
<a href="javascript:doThePopUp()">Click here for test</a>
In popup page:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
lockU = 1
function doAgain() {
if (lockU == 1) {
reWin=window.open(theUrl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=n o,resizable=no,width=530,height=435,top=100,left=100')
}
}
// End -->
</script>
It works just for this one...