Mobile app version of vmapp.org
Login or Join
Gretchen104

: Is text in Javascript HMTL scripts taken into account in Google (or other) indexes? I have a HTML page where I update the content of a div to display some introduction text when displaying

@Gretchen104

Posted in: #Google #Html #Indexing #Javascript

I have a HTML page where I update the content of a div to display some introduction text when displaying the page. It is hard for me to create copies of this page for all possibilities and move the text as static content correspondingly.

When I have a Javascript, something like this:

<script type="text/javascript">
setIntroduction("This is my introduction text etc... etc...");
</script>


Does Google (or other index tool) take into account the This is my introduction text etc... etc... text, since it appears in the page? Or is it ignored?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gretchen104

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

Google does parse and execute some JavaScript. How far those capabilities go is unknown but is definitely limited. It is widely assumed that basic JavaScript such as in your example is basic enough for them to parse and understand so any content generated by that HTML would be recognized and factored into your page's rankings.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme