Does Google read javascript?

Discussion in 'Google' started by mahmood, Sep 23, 2005.

  1. #1
    Hi

    I wonder if Google reads javascript, for example document.write and window.status.

    Thanks.
     
    mahmood, Sep 23, 2005 IP
  2. maro

    maro Peon

    Messages:
    356
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am not 100% sure about it, but I don't think they do
     
    maro, Sep 23, 2005 IP
  3. theloans_org

    theloans_org Peon

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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...
     
    theloans_org, Sep 23, 2005 IP
  4. chankp

    chankp Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i think the best way is to source your javascript from external file.. something like this.. <script src="js/javascript.js"></script>
     
    chankp, Sep 24, 2005 IP
  5. rehash

    rehash Well-Known Member

    Messages:
    1,502
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    150
    #5
    this is even recommended on google's website
     
    rehash, Sep 25, 2005 IP
  6. Cristian Mezei

    Cristian Mezei Notable Member

    Messages:
    3,332
    Likes Received:
    355
    Best Answers:
    0
    Trophy Points:
    213
    #6
    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.
     
    Cristian Mezei, Sep 25, 2005 IP
  7. markkk

    markkk Well-Known Member

    Messages:
    1,143
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    140
    #7
    No....;) ;)
     
    markkk, Sep 26, 2005 IP
  8. theta71

    theta71 Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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
     
    theta71, Sep 26, 2005 IP
  9. opiapr

    opiapr Peon

    Messages:
    171
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No Google can't read javascript.
     
    opiapr, Sep 29, 2005 IP
  10. TechEvangelist

    TechEvangelist Guest

    Messages:
    919
    Likes Received:
    140
    Best Answers:
    0
    Trophy Points:
    133
    #10
    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.
     
    TechEvangelist, Sep 29, 2005 IP
    Mia likes this.
  11. microtony

    microtony Peon

    Messages:
    281
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i don't think so...
     
    microtony, Sep 29, 2005 IP
  12. Cristian Mezei

    Cristian Mezei Notable Member

    Messages:
    3,332
    Likes Received:
    355
    Best Answers:
    0
    Trophy Points:
    213
    #12
    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.
     
    Cristian Mezei, Sep 29, 2005 IP
  13. LikeMike

    LikeMike Peon

    Messages:
    69
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #13
    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)
     
    LikeMike, Sep 29, 2005 IP
  14. Cristian Mezei

    Cristian Mezei Notable Member

    Messages:
    3,332
    Likes Received:
    355
    Best Answers:
    0
    Trophy Points:
    213
    #14
    Do you Know GoogleGuy ? :)

    Watch him reply to you :

    Live link : http://www.webmasterworld.com/forum10003/1456.htm
     
    Cristian Mezei, Sep 29, 2005 IP
  15. ashu

    ashu Banned

    Messages:
    77
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Nope. Google can't read javascript
     
    ashu, Oct 1, 2005 IP
  16. sparkimarki

    sparkimarki Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    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?
     
    sparkimarki, Oct 2, 2005 IP
  17. goodbiz

    goodbiz Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    I use java redirect fine with google
     
    goodbiz, Oct 4, 2005 IP