marss wrote:
Jacob wrote: Is there no way to use location.refresh or location.reload?
var f = document.getElementById('iframe1');
f.contentWindow.location.reload(true);
Value of parameter in the brackets :
false - Default. Reloads the page from the browser cache.
true - Reloads the page from the server.
But I don't know whether it works elsewere besides IE.
It also works in Gecko, in fact the Location object and its reload()
method (along with the meaning of the argument) were introduced in
NN 3.0 (JavaScript 1.0 then). However, this solution has its
shortcomings:
- it requires implementation of HTMLDocument::getElementById()
(not before IE 5.0)
- it requires an ID for the `iframe' element,
(or implementation of HTMLDocument::getElementsByTagName();
not before IE 5.0)
- it requires support of the `contentWindow' property
(not before IE 5.5)
DOM Level 0 suffices here, works _always_ and most certainly _everywhere_
(except if client-side script support is unavailable).
PointedEars