Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does google robot index text from javascript document.write()?

Lets say I have this:

<script type="text/javascript">
    var p = document.getElementById('cls');
    p.firstChild.nodeValue = 'Some interesting information';
</script>

<div id="cls"> </div>

So, google robots will index text Some interesting information or not?

Thanks!

like image 678
Vitalii Ponomar Avatar asked May 13 '26 20:05

Vitalii Ponomar


2 Answers

AFAIK, google robot will now indexing AJAX and Javascript stuff.For reference please follow:

http://www.submitshop.com/2011/11/03/google-bot-now-indexing-ajax-javascript

Get google to index links from javascript generated content

like image 72
Kiran Avatar answered May 15 '26 10:05

Kiran


Update SearchEngine watch has recently mentioned that Google bot has been improvised to read JavaScript, to quote exactly

it can now read and understand certain dynamic comments implemented through AJAX and JavaScript. This includes Facebook comments left through services like the Facebook social plugin.

like image 27
Vamsi Avatar answered May 15 '26 08:05

Vamsi