Dark Dragon
09-10-2003, 01:26 PM
I am working on a test page whereas I have an iFrame. I plan to have a few links that, when clicked, will display its content in a iFrame which is on the page.
The content is to be various images...the problem I encounter is that when I click on the link, it opens the image in a new window instead of the iFrame.
I even tried to keep the default name of the iFrame when renaming it had no effect.
Does IE5 even understand iFrames???
Below is the HTML code and all that I have as of now..it isn't much:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<body background="imgs/pink.jpg">
<title>iFrame Test Area</title>
<iframe id="myIframe" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
width="40%" height="50%" src="imgs/imtitle.jpg" scrolling="no"></iframe>
<style type="text/css">
a.link {
color: black;
text-decoration: none;
font-weight: bold;
}
a.link:hover {
color: red;
}
</style>
<p><a href="imgs/elderman.gif" target="myIframe" class="link">Elderly Man Drawing</a><br>
</body>
</html>
The content is to be various images...the problem I encounter is that when I click on the link, it opens the image in a new window instead of the iFrame.
I even tried to keep the default name of the iFrame when renaming it had no effect.
Does IE5 even understand iFrames???
Below is the HTML code and all that I have as of now..it isn't much:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<body background="imgs/pink.jpg">
<title>iFrame Test Area</title>
<iframe id="myIframe" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
width="40%" height="50%" src="imgs/imtitle.jpg" scrolling="no"></iframe>
<style type="text/css">
a.link {
color: black;
text-decoration: none;
font-weight: bold;
}
a.link:hover {
color: red;
}
</style>
<p><a href="imgs/elderman.gif" target="myIframe" class="link">Elderly Man Drawing</a><br>
</body>
</html>