Im wondering if google and other bots reads javascript? i know that its not advisable to use this but sometime you cannot follow this
there are also some good ranking site that uses this and google index the page
Google may have difficulty indexing links embedded within JavaScript or Java. However from my experience most times google will index and follow the link.
google can read it ...however it wont understand the commands nor execute it properly, for the bot to do that and execute it properly it must carry a wsdl-enabled SOAP client, to be the trigger.
Plus overdoing JS online slows down page load since browser Mozilla configurations will vary