iframe targeting

windows

Guest
I have a link that I want to have open in the iframe. <br />
<br />
How?<br />
<br />
Ty,<br />
G<br />
:D<!--content-->Give your iFrame a name... for example:<br />
<br />
<iframe src=http://www.htmlforums.com/archive/index.php/"something.html" name="iframe"></iframe><br />
<br />
Then add a target attribute to the link you want opened in the iFrame:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"page1.html" target="iframe">a link</a><!--content-->What's in a name?<br />
<br />
<iframe name="myframe" align="middle" frameborder="0" width="400" height="150" scrolling="no" border="0"></iframe> <br />
<br />
links:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"frans.html" target="myframe">Frans</a><br />
<a href=http://www.htmlforums.com/archive/index.php/"kees.html" target="myframe">Kees</a><br />
<a href=http://www.htmlforums.com/archive/index.php/"dian.html" target="myframe">Dian</a><br />
<a href=http://www.htmlforums.com/archive/index.php/"ineke.html" target="myframe>Ineke</a><br />
<a href=http://www.htmlforums.com/archive/index.php/"jose.html" target="myframe">Jos?lt;/a><br />
<br />
:rocker:<!--content-->Here is how:<br />
<br />
<iframe src=http://www.htmlforums.com/archive/index.php/"#" name="george">Your browser doesn't support inline frames</iframe><br />
<a href=http://www.htmlforums.com/archive/index.php/"some_url" target="george">This link will open in the iframe</a><br />
<br />
Name and target are very important.<br />
I hope this helped.<br />
Peace,<br />
Ed<!--content-->
 
Back
Top