Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Links with iFrames

Status
Not open for further replies.

KizMar

Technical User
Mar 13, 2002
52
US
It is possible to link someone to a an index page with a 'main' iframe and send them to a certain page within that iframe?

Example:
I want to be able to send someone to this page, and have the iframe load a page other then the "src" page in the iframe.
 
What I'm trying to do seems simple but it is hard to explain...

Say I have a web page with an iFrame to display the main content, the "body" of the page (
If I'm on another web page that's linked to "ats-tech" and I want to direct them to a page other then the initial source of the iframe.. say the "Hosting" page, how can I do that?

---| ????

jammer1221 - I looked at what you posted and I might be able to do what I need to with the sample code provided. I'll play around with it today and let you know! Thank you!
 
If you want things to open in the iframe from outside the iframe (the page its floating on) then target="iframe's name"

If you want to link to a different site outside of the iframe from a link in the iframe :

<a href=&quot; target=&quot;_blank&quot;>

if you wanna keep it in the iframe just leave the target out of the link.

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
Here’s the deal… you made a web site:
You made another website also:
The problem: You want to put a link on that points to the “Hosting” page on You used an iframe for the “content” of ATS-Tech, so when you view the Hosting page normally, you’re seeing it within the iframe on the index page (you’re actually still viewing the index page). If I were to link directly to it will load all by its lonesome self, and not inside the iframe of the index page.

So when one clicks on the following link: they get the hosting page all by itself.

The effect I want, I can only seem to get by going to and clicking on the “Hosting” tab. I'm trying to figure out how I can get someone to the Hosting page on ATS-Tech, without them having to click on the hosting tab. Or any other page on ATS-Tech for that matter. =)

Hopefully this explains my dilemma a little better… …
 
If you know the name of the iframe on ats-tech then i guess you could do the &quot;change two frames at a time&quot; trick, linking to the index page and then the host page.
(faq215-733)

Though that probabally wont work Id say its on the right track, maybe search Webmonkey ( before resorting to google?

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top