Hi,
I have this script, which is called from inside an iFrame to refresh the parent page.
Problem is, it only works sometimes... in Firefox and Safari it freezes or even seems to loop sometimes.
I need it to pause so I can see what's happening sometimes, and this is usefull in many other situations, hence the 'setInterval'.
<p><b>Refreshing page in 2 seconds... please wait or <a href="#Top" onMouseDown="reload()">click here</a></b></p>
<script type="text/JavaScript" language="JavaScript">
<!--
function reload() {
parent.frames.location.href = '/admin/?view=page&id=1';
}
setInterval("reload()", 2);';
//-->
</script>
Any ideas?