Open 2 windows with set timeout
<p>I have this code that redirect the current window and also open another popup window. I need the current window to be opened first and then the pop up window for user to do something. but what it is doing is open the current window and then the pop up window, but then it goes back to the current window and doesn't stay with popup window. how do I make it stay with popup window. </p>

<pre><code> var WindowFtrs = "menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=600,height=630";      
          document.location.href =  lUrl + RPID;             
  setTimeout(window.open(rUrl+ "?PID=" + RPID + isDlg , "Mywindow", WindowFtrs),5000);
</code></pre>
