I've searched through the posts and found quite a lot of information on this topic but I still can't seem to get this right. The code looks like this:
<?php
echo "<a href='#' onClick='javascript:window.open('php/blog/archives.php?year=\'.$get_year\' ,'Archives','width=500,height=550,scrollbars=yes')\;'>Argggghhhh</a>";
?>
.
As you can see, I am calling a javascript behaviour to open a window to a php file with a variable. It isn't working, however, because the link (when I mouse over it in the browser) stops at the #. I have tried a load of different combinations (yes, I have read the php.net documentation on the difference between " and ' but is hasn't helped). Can anyone help me out with this?
PS: java and script are written with a space in the quote above but not in the script
CF