Iframes

  coolteentom 13:54 21 Oct 05
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 05

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 05

Many thanks for your help,

Is now working :D

Tom

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

Sniper Elite 4 review: Headshotting Nazis has never felt so good

1995-2015: How technology has changed the world in 20 years

The Best Design, Illustration, Animation and VFX Awards of 2017

WWDC 2017 dates: How to get WWDC 2017 tickets, when is WWDC 2017 and more details announced