withSolutions   Script Sample Showcase
 
Skip Navigation Links.   Self closing messagebox using JavaScript.

<script type="text/javascript" language="javascript">

  <!--

  

setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=200,height=150'

setup += 'scrollbars=no,resizable=no'

pop = window.open ("","pop",setup)

pop.document.write('<head>');

pop.document.write('<Title>');

pop.document.write('Pop Up Box');

pop.document.write('</Title>');

pop.document.write('<script language="javascript">');

pop.document.write('setTimeout(');

pop.document.write('"self.close()');

pop.document.write(';",5000)');

pop.document.write('</');

pop.document.write('script>');

pop.document.write('</head>');

pop.document.write('<body bgcolor=#FFFF80>');

pop.document.write('<center><h3>Please wait while this page loads.</h3></center>');

pop.document.write('<center><h6>(This Window is self-closing)</h6></center>');

pop.document.write('</body>');

  

-->

</script>