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>";
?>