delta770
Feb 23rd, 2003, 11:30 PM
i have this code
<script language="JavaScript" type="text/JavaScript">
function RefreshMainWindow() {
window.opener.location.reload();
window.close()
}
</script>
//called by
<META HTTP-EQUIV="refresh" CONTENT="5; RefreshMainWindow();">
am i not allowed to call a method in a refresh block? how can i do something like this..
when the script runs, every 5 seconds, the parent refreshs, but the child windows (that this script is on) doesn't clse like it's supposed to, it refreshes too.. :(
--770
<script language="JavaScript" type="text/JavaScript">
function RefreshMainWindow() {
window.opener.location.reload();
window.close()
}
</script>
//called by
<META HTTP-EQUIV="refresh" CONTENT="5; RefreshMainWindow();">
am i not allowed to call a method in a refresh block? how can i do something like this..
when the script runs, every 5 seconds, the parent refreshs, but the child windows (that this script is on) doesn't clse like it's supposed to, it refreshes too.. :(
--770