Need help with JavaScript

Argo

Lifer
Apr 8, 2000
10,045
0
0
How do I force another frame to refresh itself? All I know is the name of that frame.
 

teknodude

Member
Apr 11, 2002
186
0
0
With the following code:

framename.location.reload()

You could use it in a function or a link e.g.

<a href="javascript:framename.location.reload();">Reload frame</a>

...or if you wanted to refresh the page in the other frame when a link was clicked in the main frame....

<a href="pagewhatever.html" onclick="javascript:framename.location.reload();">Page Whatever</a>

...or in a function...

function myFunction(){
framename.location.reload();
}

Hope that helps :)

teknodude
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
Thanks that works. I was using document.refresh() function for some reason, and it wasn't working.