Hello
I have a page A which contains an iframe B which gets loaded with content as the page loads
Page A has a link. When the link is clicked, I invoke some JavaScript function which performs some tests, and then I would like to have my iframe reload some other URL
The problem is that I change the iframe’s src attribute to the new URL but nothing happens. The iframe isn’t reloading.
How can I force it to reload?
I heard that it was a problem in IE but that could be a mistake on my part
It is vital to note that if I clean my browser cache (on IE), then the code works fine once (the iframe gets reloaded). But once it is in the cache, successive attempts fail
Here is a sample of my code
[code]
<head>
function test() {
// perform some tests here
iframe = document.getElementById(‘RSIFrame’);
iframe.src = ‘two.html’;
// iframe.reload(true); <– even tried that
}
</head>
<body>
<a href=”javascript: void test();”>Run</a>
<iframe src=”one.html” id=”RSIFrame” name=”RSIFrame” width=”200″ height=”100″></iframe>
</body>
Thanks in advance