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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create a hyperlink to open URL in Iframe

Status
Not open for further replies.

rhinomac

Programmer
Jan 24, 2003
34
0
0
US
Hello,
I am trying to have multiple hyperlinks on my right column module. I would like to be able to click on any one of these links to have the corresponding url open inside the Iframe.

I can not figure out the code to put in the right column to reference the page, the Ilink and to have it display text to click on it.

example
Right Column

click here to open in the Iframe

Main page

opens in the IFrame

Thanks in advance -
Happy Holidays
Rhino
 
actually this is a html question, not php...

there is a forum for html (sorry, don't remember the number).
 
forum215

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
put the target (name of the iframe) in the target attribute of the href

<a href="somepage.php" target="iframe_name">click to see this</a>

Bastien

Cat, the other other white meat
 
i spoke to soon,
on index.php i need a hyperlink, this hyperlink should open up test.php
within test.php is an iframe named myiframe i need my iframe to open up a url

basically i need code that says "open test.php within the iframe open url how would you code the link?

This link below only works if its on the same page as the iframe
<a href="somepage.php" target="iframe_name">click to see this</a>
Thanks
again
Rhino
 
Thanks,
i found this thread, thread216-941305
its pretty close to what i need but i need to pass the url itself and be able to set the source of the iframe
so if my link was:

i would need to be able to seperate the url out and set the source of my iframe to it.

any thoughts?
Thanks, this ones really beating me up....
-Rhino
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top