For Blogger or Blogspot users who use Haloscan comment system or my comment under form hack. you will usually found that your comment link on your mainpage is opening a new popup window if your reader clicking on it.
This is so annoying, especially for people who hate popup window.
So here is the trick to avoiding new popup window by redirecting them to the post page.
How To Avoid opening New Popup Window on your MainPage while people click on the comment link.
1. Go to your HTML Editor on your Dashboard / Control Panel
2. Find this code:
<span class='post-comment-link'><b:if cond='data:blog.pageType != "item"'> <b:if cond='data:post.allowComments'><a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a></b:if></b:if></span>
Change the code above to be like this below;
<span class='post-comment-link'><b:if cond='data:blog.pageType != "item"'> <b:if cond='data:post.allowComments'><a class='comment-link' expr:href='data:post.url + "#comments"' ><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a></b:if></b:if></span>
3. Save your template.
4. refresh your mainpage, and see how is it going now
done!
easy huh?
« Should we use HaloScan? (I am so disappointed to HaloScan)
Google DNS is being hacked. it’s also Microsoft, Yahoo, MSN, and all other big popular sites »