Popupwindow focus problem
Posted: Thu Oct 14, 2004 10:54 am
I'm having some additional data in popupwindow. Opening goes ok, if i close it it remembers it's location etc. But i cant make it become in front. It opens in front, but after that it stays behind. Any links opening there opens fine, but it doesnt come in front.
Included in HEAD, sripts part:
Script:
Call:
Included in HEAD, sripts part:
Code: Select all
<?php
echo "var newWindow = null;";
?>Code: Select all
function makeNewWindow(url, name, features)
{
newWindow = open(url, name, features);
if (newWindow && !newWindow.closed)
newWindow.focus();
return false;
}Code: Select all
<?php
echo "<a href="index.php?MM=kysymykset&UKK_Vastaus=$UKK_V_ID" target="UKK"
onclick="return makeNewWindow(this.href,this.target,'width=900,height=600,left=50,location,scrollbars')">Something</a>";
?>