Forum Moderators: open
My (commercial) website has a pagerank of 7. I am doing a friend of mine a favour by linking to him (non-commercial site) on my frontpage so his traffic will increase.
Because I don't want to get penalized by his pagerank so I decided to use the following javascript link. As far as I know this will not be followed by the robots.
<a href="javascript:void(0)" onclick="window.open('http://www.widget.com')">Widgets</a>
But for some reason the javascript:void(0) part is not working. I always thougth this would return a value of 0 and the link won't work, but the onclick will open the target website in a new window.
But instead the javascript:void(0) returns a 404 error.
I've checked this in tutorials and they do it the same way and it does work. Widgets.com is opened in a new window.
Am I missing something?
<head>
<script language="javascript">
function popwin(){
newwin = window.open( "/window.html", "newwin", 'width=390,height=500,resizable=1,scrollbars=yes');
}
</script>
</head>
<body>
<a href="javascript:void(0);" onclick="javascript:popwin();">click me</a>
</body>
Mac