davec
10-29-2003, 11:43 AM
hi i have a problem with my code. i have basically a main htm file which is set to load another htm file as a popup. i did want the window to close after 10 seconds but it wouldnt work. i have had it working on my pc but when i upload it to my webspace it will not work.
heres the code.
Main htm file
<script language="JavaScript">
setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=500,height=150'setup+= 'scrollbars=no,resizable=no,toolbar=no,'
window.open ("http://www.4xe.co.uk/dave.htm","pop",setup)
</script>
popup dave.htm source
<script language="JavaScript">
window.setTimeout("self.close()", 10000);
</script>
I have read a book about this but i really can't get my head arround it.
with the window.setTimeout i have changed the self.close to window.close and dave.close
Thanks
heres the code.
Main htm file
<script language="JavaScript">
setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=500,height=150'setup+= 'scrollbars=no,resizable=no,toolbar=no,'
window.open ("http://www.4xe.co.uk/dave.htm","pop",setup)
</script>
popup dave.htm source
<script language="JavaScript">
window.setTimeout("self.close()", 10000);
</script>
I have read a book about this but i really can't get my head arround it.
with the window.setTimeout i have changed the self.close to window.close and dave.close
Thanks