I'm trying to open new window in background. Here is my code:
function OpenInNewTab()
{
var myChild= window.open('http://page.pl', '', 'width=,height=,resizable=no');
myChild.blur();
window.focus();
}
Usage:
<div id="player" style="width:450px;height:300px;">
<img onclick="OpenInNewTab();" class="button" src="http://page.tv/images/foto.png" />
</div>
But it doesn't work. Where is a problem in this code?
Thanks.