QUOTE(Styx @ 26 Jun, 2007 - 02:23 AM)

Well, your script works just fine except you forgot to put a name for window.open(url, name, attributes)
It would be better written just as:
CODE
[code]<a href="java script:openpopup('phpinfo.php')">popup</a></br>
<script language="JavaScript" type="text/javascript">
function openpopup(url)
{
window.open(url, url, 'width=600,height=500, scrollbars=0, resizable=0');
}
</script>
since it doesnt have much to do with php
(also, this forum adds a space in javascript for some reason)
CODE
echo " <script language=\"javascript\" TYPE=\"text/javascript\"> ";
echo " var url
function popup(mylink, windowname)
{
if (!window.focus)
return true;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=300,height=300,scrollbars=yes');
return false;
}
</SCRIPT>";
echo "<A HREF=\"timings.php\"
onClick=\"return popup(this, 'notes')\">POPUP</A>";
this code is working good................
[mod edit] use code tags