Open multiple popup and close them individually - Javascript Operator

Javascript examples for Operator:Arithmetic Operator

Description

Open multiple popup and close them individually

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script>
        function call()//from  w  w w.jav a2s .  co  m
        {
            popup = window.open('http://www.google.com');
            setTimeout(wait, 20000);
        }
        function caller()
        {
            setInterval(call, 20000);
        }
        function wait()
        {
            popup.close();
        }
    
      </script> 
   </head> 
   <body onload="caller();">  
   </body>
</html>

Related Tutorials