View Full Version : iFrames change!


turnupthegood
03-29-2007, 12:07 PM
I wanna know, how to mak the iFrames change when I click on a button in the page?! My idea was a URL to the iFrame and I need the code.

Thank youu! :princess:

Ges
03-31-2007, 08:02 PM
Hi turnupthegood,
Here is some code that will change the content of an iframe when you click on a link. Each link points to a URL or file. Just edit it to test.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>IFRAME LINKS</title>
</head>
<body>
<table align="center" bgcolor="#FFFFCC">
<tr>
<td>
<h4>Some iFrame links</h4>
<ul>
<li><a href="iframe_link1.html" target="facts">Link 1</a></li>
<li><a href="iframe_link2.html" target="facts">link 2</a></li>
<li><a href="http://www.lissaexplains.com" target="facts">link 3</a></li>
</ul>
<iframe src="iframe_link1.html" name="facts" width="300" height="200" id="facts">
</iframe>
</td>
</tr>
</table>
</body>
</html>



Hope this is what you mean.

Regards,
Ges.