Dynadot — .com Registration $8.99

iFrame question

Spaceship Spaceship
Watch
Z

zackweiler

Guest
Guest
If I wanted a hyperlink to open a page in an iFrame, but the hyperlink was outside of the iFrame...Could I? Is that possible?

www.cherreysexhaust.com/media.htm is the page I'm working on. I want to be able to click those "customer cars, visitors cars, wallpaper, etc" and load each of their pages in the iFrame to the right of them (where it says "coming soon").
Anyone know of a tutorial that could help me?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
I believe you'd do it like this:

HTML:
<a
 href="http://www.example.com" target="frame1">Link
Text</a>
 
0
•••
I wouldn't recommend using iframes... however if you must here is what you will probably do:

for your main content iframe, do this:
Code:
<iframe src="something.html" name="main1"></iframe>

You can change the src and the name to whatever.

THEN, for the hyperlinks you put on your buttons, you would do this:
Code:
<a href="page.html" target="main1">Button</a>

The hyperlink's TARGET is the NAME of your iframe :) Hope this is easy to understand.

PS: If you had a link inside an iframe and you wanted to reload the page completely with the link, just do this:
Code:
<a href="page.html" target="_top">Link</a>
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back