Click to See Complete Forum and Search --> : Reloading iframe


doodler
05-05-2003, 03:12 PM
I'm trying to reload an iframe within a page, calling the function below. Everytime i do i get an error saying "exception occurred". I need this iframe to reload in internet explorer only. Can anyone tell me what is wrong with this script?:

function tellmethesheet(){
document.frames('reloadonchange').document.location.href='javascript:location.reload();';}

Where "reloadonchange" is the name of the iframe.

brendandonhue
05-05-2003, 08:22 PM
<iframe src="file.html" name="iframe"></iframe>
<script language="javascript">
function refresh()
{
document.iframe.location.reload()
}
</script>
<br>
<a href="javascript:refresh()">Reload</a>