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

Iframe and <td onClick>

Status
Not open for further replies.

internetguy

Technical User
Nov 22, 2003
57
US
I am having a problem where I have TD's with mouse over and mouse out properties, but I also want to have an onClick that target's an IFrame. What would be the code that does this??? I have looked everywhere and I cannot find anything that deals with just this.
 
Do you mean open a new window in the IFrame when you say "targets the IFrame"? If so:
Code:
<td onclick="myFrame.location='[URL unfurl="true"]http://www.something.com'">[/URL]
<iframe name="myFrame"></iframe>
 
Almost, I mean I have all my links on the page outside the Iframe, and I want to have them link to pages that show up inside the IFrame. Sorry about the confusion
 
Oh cool, I played around with the code you gave me and it worked great. Thanks a lot for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top