Google can crawl some javascript, but the more complicated the javascript the less likely it will get indexed. If you want to ensure a link is crawled and indexed do not include it in javascript.
Wel if java script is by parts then may be it shall work. But complete java script can't be crawled by Google.
Could you please show me that link where javascript links are crawled by Google. It's really important topic
Could you show me atleast one link where google crawled Javascript link? I just want to know more about it.
Here are a couple of links to Google statements about crawling javascript: Google is constantly trying new ideas to improve our coverage of the web. We already do some pretty smart things like scanning JavaScript and Flash to discover links to new web pages, and today, we would like to talk about another new technology we've started experimenting with recently. http://googlewebmastercentral.blogspot.com/2008/04/crawling-through-html-forms.html One of the main issues with Ajax sites is that while Googlebot is great at following and understanding the structure of HTML links, it can have a difficult time finding its way around sites which use JavaScript for navigation. While we are working to better understand JavaScript, your best bet for creating a site that's crawlable by Google and other search engines is to provide HTML links to your content. http://googlewebmastercentral.blogspot.com/2007/11/spiders-view-of-web-20.html