ok....
that error pertains to PHP code
The code you showed is nothing more than HTML & JavaScript
Is this HTML and JavaScript being echo'd or printed via PHP?
if so, escape your double quotes:
<?
echo "<a href=\"javascript:window.close();\">Close</a>";
?>