I've seen previous messages in this forum, explaining the php and javascript can not be used together for the open new window function. I'm not sure if this is true but someone sent me this however I can't seem to get it to work. Any ideas ?
<script language="JavaScript">
<!--
height = screen.height 0.8
width = screen.width 0.9
function openNewWindow(siteurl) {
window.open(id, "",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + width + ',height=' + height);
}
//-->
</script>
echo ("<a href='javascript:openNewWindow($siteurl)'>$sitename</a>");
Any help would be appreciated
Regards,
Donald.