Reload frame with button
Posted on 2009-03-31
Hey! I have looked through 20 posts now, but none answered my question. I have a couple of iFrames on my site, showing some scripts from differant php-files each. I have above each frame a picture to reload them, but I can't get it to work correctly. The php-files are pretty sensitive, and the only thing that works is a "true" reload (fx right-click > Reload Frame) or this script here, which works pretty well:
<INPUT TYPE="image" src="refresh.jpg" value="Reload" onClick="self.location.reload(true)" target="frame1">
But that script reloads every frame, and not just the one frame. How do I target it to reload frame1 only? Thanks!!