Focus on new window open by window.open
<p>I want to open a new window by window.open and also focus that window even if  the tab create new window is not selected.</p>

<p>As per my R &amp; D If tab that is not selected and create window by some timer function, then opened window is not display on screen, it just display as blinking on taskbar.</p>

<p>Code: </p>

<pre><code>win = window.open("",'_blank','titlebar=no, location=no, directories=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, height=50, width=650');
var errorMessage= "Your session will expire in 1 minute,To extend your session, Please press the Extend button.";
win.document.write("&lt;html&gt;&lt;head&gt;&lt;title&gt;Session Expire&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;div style='color:red; line-height:50px;' id='message'&gt;"+ errorMessage +"&lt;input type='button' id='btn' value='Extend' /&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;");
win.focus();
</code></pre>

<p>I want open  new window on center of the screen and the tab which create is not selected,  and display new window even if I am currently working on other application</p>
