Really Strange Problem with IFRAME location.href

  • Thread starter Thread starter June Moore
  • Start date Start date
J

June Moore

I have a page with an IFRAME. When I tried to dynamically set the
location.href of the IFRAME to a URL address, the Internet Explorer
browser loads the page onto the IFRAME correctly but a very strange
thing usually happens, i.e. the progress bar shows that the page is
loading in progress.

e.g.

<iframe name="test" width="100" height="100"></iframe>
....
<script>
document.test.location.href="aTestPage.aspx";
</script>

Any clues how to resolve the progress bar problem?

Thanks very much,
June.
 
June said:
I have a page with an IFRAME. When I tried to dynamically set the
location.href of the IFRAME to a URL address, the Internet Explorer
browser loads the page onto the IFRAME correctly but a very strange
thing usually happens, i.e. the progress bar shows that the page is
loading in progress.

e.g.

<iframe name="test" width="100" height="100"></iframe>
...
<script>
document.test.location.href="aTestPage.aspx";
</script>

Any clues how to resolve the progress bar problem?


Try assigning the "src" to your URL.
Mick
 
Back
Top