[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

iFrame link

Posted on 2008-10-27
2
Medium Priority
?
233 Views
Last Modified: 2012-05-05
Should be simple issue here, but cant find out what Im doing wrong!

Ive got a simple iframe which when the user click on a link, the iframe changes to that.

Using a frame is easy, and I thought that iFrame is the same, but obviously not.

Any ideas where Im going wrong here?
<body>
<a href="http://www.google.co.uk" target="ifraBody">google</a><br />
<a href="http://www.bbc.co.uk" target="ifraBody">bbc</a><br />
<a href="http://www.hotmail.co.uk" target="ifraBody">hotmail</a><br />
 
<div id="divBody">
	<iframe id="ifraBody" src="body.php"></iframe> 
</div>
</body>

Open in new window

0
Comment
Question by:tonelm54
2 Comments
 
LVL 3

Assisted Solution

by:siranm
siranm earned 400 total points
ID: 22817371
i don't know if you can use iframes as a normal frame....

but i guess you could use onclick event and write


<a href="http://www.bbc.co.uk" onclick="    document.getElementById('ifraBody').src = this.href;    ">bbc</a><br />



or something similar....
0
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 1600 total points
ID: 22817398
Try this:
<iframe id="ifraBody" name="ifraBody" src="body.php">

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question