Nope, google will not read it. Anyway, the best way to be properly indexed is to write simple webpages. Any "sophisticated" methods like javascript, flash, etc. may do you more harm than good...
i think the best way is to source your javascript from external file.. something like this.. <script src="js/javascript.js"></script>
About Google, indexing javascript : Google can scan embedded JavaScript for weblinks, but it will only find complete URLs (ie. "http://www.domain.com"). Relative URLs and computed URLs constructed at runtime are not found by Google. It's a good idea to include plain links to the same pages in a <noscript></noscript> section of the document both for search engines as well as for those users who browse with JavaScript disabled. Also, altough Google does not state it officially, it DOES index JSs : http://www.google.com/search?num=10...=something+filetype:js&btnG=Search&lr=lang_en As for Google indexing Javascript links, as this one : the answer is : NO.
I don't believe googles spiders read java script, because I wanted to add rss feeds to show G that I had fresh content and they advised me not use java but php because only the web surfer could see the java code
There is a difference between reading JavaScipt and executing it. As expertu pointed out, they can scan it for links. It's just looking for a URL pattern in the code. I have seen Googlebot following some JavaScript links (those using visible URLs in the code) and JavaScript links to pop-ups, but have not seen any evidence that they are capable of executing JavaScript. I recenty worked on a site where the site owner had been trying to use JavaScript document.write to rewrite HTML title tags. Google ignored it competely.
The point is : To execute Javascript, Google must interpret it right ? So Google must parse Javascript and learn it ? Google doesn't do this (learning to interpret javascript), for now at least.
I found out the hard way about the way Google indexes pages. At first my site was completely with flash. When I started investigating why my site hadn't been indexed by google after the first month I found out that google can not read THUS can not index flash pages. I had to manually convert my site from flash to html. I learned a hard lesson. FLASH SUX! (Well generally at least, flash games and funny flash movies still Rox! lol)
Do you Know GoogleGuy ? Watch him reply to you : Live link : http://www.webmasterworld.com/forum10003/1456.htm
i was interested in adding an rss feed to my website but also understood that google does not read javascript so am looking for a simple way to incorporate a feed with php - any ideas?