Well, you will need to close the script tag:
Code:
<head>
<script>
function autoClick(){
document.getElementById('linkToClick').click();
}
</script>
</head>
<body onload="setTimeout('autoClick();',3000);">
<a id="linkToClick" href="http://www.google.com" target="_blank">GOOGLE</a>
</body>
And it is IE only. Even in IE, if the pop up blocking settings are high enough, the blocker will still block it. Like, if clicking on the link is blocked (highest setting - block all pop ups), then the script won't work either.
You really shouldn't be popping things up in a window though, there are almost always better, though often more complicated ways to accomplish whatever you are trying to do, ways that will work cross browser and not be subject to pop up blocking.
Bookmarks