Iframes

  coolteentom 13:54 21 Oct 2005
Locked

Hi, I'm just making a site at the min, and I am not sure how to work Iframes.

I have got buttons on the navigation beginning with this type of code: a href="aboutus.htm" target="iframe"...

and on the main part of the page I have got an Iframe: IFRAME SRC="body_test.htm" WIDTH=100% Height=488 ALIGN=center> /IFRAME>

I want the pages to come up in the iframe. However, at the minute, the pages are coming up in a new window.

Any help appreciated, Tom

  djinn 16:22 21 Oct 2005

Hey,

Give your frame a name, say MyFrame.

So, like..........

<iframe src="body_test.htm" name="MyFrame" width="60%" height="400" align="default"></iframe>

Then reference it by *targeting* the name....

So, like.........

a href="aboutus.htm" target="MyFrame"

HTH
Cheers

  coolteentom 22:46 21 Oct 2005

Many thanks for your help,

Is now working :D

Tom

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Honor 9 Lite review

How Social Media has Propelled Political Graphic Design and Art in the Last Decade

The best kids apps for iPhone & iPad 2018

HomePod d’Apple : date de sortie, prix et fiche technique