Sunday, 26 June 2011

Revisiting Javascript Onclick Textlinks


First of all, let’s review what an Onclick textlink looks like, and why would someone use them.


A few years ago, Google was unable to read inline Javascript. But, as we all know, Google has been getting more and more sophisticated.


Onclick textlinks are search friendly, but not optimal. Primarily javascript onclick textlinks are used to track clicks. But, is there anything else you should know about them?


As long as the onclick elements doesn’t change where the user goes and just track clicks, there shouldn’t be any problems. The real issue is where the onclick determines location–or worse, supercedes the href, or the href is blank.


As long as the href= is in place you’ll be fine with the javascript in the link.


Here is an example:

onclick javascript textlink


Using the above example, the search engine sees the link text is “Carrie Underwood Undo It”. The span is just to put the song title in italics.


GoogleBot can crawl JavaScript with clean URLs.


In summary, for SEO, it’s best to use the straightforward static HREF textlink whenever possible.





Share and Enjoy:


StumbleUpon
Sphinn
del.icio.us
Reddit
Facebook
Propeller
TwitThis






No related posts.


Generated by BlogIt

BlogIt - Auto Blogging Software for YOU!

BlogIt - autoblogging software for YOU

BlogIt - autoblogging software for YOU

No comments:

Post a Comment