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

Tell a iframe to load another page

Status
Not open for further replies.

ironhide1975

Programmer
Feb 25, 2003
451
US
How do I tell an iFrame (inside frame) to load another page with an onClick?



 
Hi

Code:
[gray]...[/gray]

<a href="another.htm" target="inside" onclick="alert('Why the onclick ?')">load</a>

[gray]...[/gray]

<a href="#" onclick="inside.location.href='another.htm'">whatever</a>

[gray]...[/gray]

<iframe name="inside">

[gray]...[/gray]

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top