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

reload two frames with href

Status
Not open for further replies.

livestrong

Technical User
Nov 27, 2006
29
IE
Hi Guys,

I have a href in frame 1 for eamaple , this reloads frame 2, however i need the href to reload frame 1 also.

Any ideas.

Any help would be great.

 
If it's a standard anchor targetted to frame2, you could use:

Code:
<a href="someLinkForFrame2" target="frame2" onclick="location.reload(true);">

If it uses script, then simlpy add the script to reload frame 1:

Code:
<a ... onclick="yourCurrentScript; location.reload(true);">

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thats great thanks instead i used this in the body of Frame 2

<body onLoad="parent.Frame1.location.reload();">

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top