Hello, i'm trying to have a image link display a pop-up window when it is clicked. Now ig ot that to work, but when it is clickedk in the iframe that it is in it will put that page in there too... how do i make it so that the iframe stays where it is and it just make one pop-up?
I hope that make sense, and the code for the page is below...the css file just puts the text where it's supposed to be... it doesn't mess with the links at all. If someone could help me figure out why the exec day pop-up makes the pop-up window but also displays it in the iframe of the main page that would be much appreciate, caue it isn't supposed to display the pop-up stuff in the iframe!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<link rel="stylesheet" type="text/css" href="frame.css" />
<SCRIPT TYPE="text/javascript">
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=400,scrollbars=yes');
return false;
}
</SCRIPT>
</head>
<body align="center">
<a href="cuba1.html" target="_blank">
<img style="border: 0px solid ; width: 183px; height: 200px;" alt="" src="CubaImages/cubathumbnail.jpg" title="Cuba">
</a><br>
<div id="caption-photos1">
Cuba
</div>
<br>
<br>
<a href="execday1.html" onclick="popup(this,'Exec Day')";><img style="border: 0px solid ; width: 183px; height: 116px;" alt="" src="ExecDayThumbnail/execdaythumbnail.jpg" title="Exec Day"></a><br>
<div id="caption-photos">
Exec Day
</div>
<br>
<br>
<a href="paki1.html" target="_blank"><img style="border: 0px solid ; width: 184px; height: 130px;" alt="" src="PakistanImages/pakithumbnail.jpg" title="Pakistan"></a><br>
<div id="caption-photos">
Pakistan
</div>
<br>
<br>
<a href="portrait1.html" target="_blank"><img style="border: 0px solid ; width: 185px; height: 195px;" alt="" src="PortraitImages/portraitthumbnail.jpg" title="Portraits"></a>
<br>
<div id="caption-photos2">
Portraits
</div>
</body></html>
I hope that make sense, and the code for the page is below...the css file just puts the text where it's supposed to be... it doesn't mess with the links at all. If someone could help me figure out why the exec day pop-up makes the pop-up window but also displays it in the iframe of the main page that would be much appreciate, caue it isn't supposed to display the pop-up stuff in the iframe!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<link rel="stylesheet" type="text/css" href="frame.css" />
<SCRIPT TYPE="text/javascript">
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=400,scrollbars=yes');
return false;
}
</SCRIPT>
</head>
<body align="center">
<a href="cuba1.html" target="_blank">
<img style="border: 0px solid ; width: 183px; height: 200px;" alt="" src="CubaImages/cubathumbnail.jpg" title="Cuba">
</a><br>
<div id="caption-photos1">
Cuba
</div>
<br>
<br>
<a href="execday1.html" onclick="popup(this,'Exec Day')";><img style="border: 0px solid ; width: 183px; height: 116px;" alt="" src="ExecDayThumbnail/execdaythumbnail.jpg" title="Exec Day"></a><br>
<div id="caption-photos">
Exec Day
</div>
<br>
<br>
<a href="paki1.html" target="_blank"><img style="border: 0px solid ; width: 184px; height: 130px;" alt="" src="PakistanImages/pakithumbnail.jpg" title="Pakistan"></a><br>
<div id="caption-photos">
Pakistan
</div>
<br>
<br>
<a href="portrait1.html" target="_blank"><img style="border: 0px solid ; width: 185px; height: 195px;" alt="" src="PortraitImages/portraitthumbnail.jpg" title="Portraits"></a>
<br>
<div id="caption-photos2">
Portraits
</div>
</body></html>