Mobile app version of vmapp.org
Login or Join
Lengel546

: Will JavaScript (document.write) content be indexed by search engines? I have an external JS file embedding some content inline in a web page. Basically it just does a document.write("my content")

@Lengel546

Posted in: #Indexing #Javascript #SearchEngines #Seo

I have an external JS file embedding some content inline in a web page.

Basically it just does a document.write("my content") via a script tag and loaded externally with the src attribute.

Any chance for this content to be indexed?

Answer seems obviously negative but I have a slight hope while crawlers have surprising abilities.

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

4 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

The noscript tag won't help much
productforums.google.com/forum/#!category-topic/webmasters/crawling-indexing--ranking/FEqhhborItY
One of the problems with noscript is - as others have mentioned - that it's been abused quite a bit by spammers, so search engines might treat it with some suspicion. So if this is really important content, then I wouldn't rely on all search engines treating your noscript elements in the same way as normal, visible, static content on your pages. If this is "just" for comments, then that might be worth considering regardless, especially if the alternatives are much more complicated

10% popularity Vote Up Vote Down


 

@Smith883

Search engines do not parse javascript so document.write() would not be indexed by search engines. One way you might be able to get around this is by having text in noscript tags.

Example:

<noscript>Text goes here</noscript>

10% popularity Vote Up Vote Down


 

@Caterina187

Yeah it is possible that this part can be visible in the search engines , there is a project called #! (hash bang) according to this if you have any javascript code introduced in yourpage you can surely index it in the search engines by making a anchor tag with the reference starting with a #! . try it it might help but i m not sure about your perticular problem.

10% popularity Vote Up Vote Down


 

@Frith620

No, they won't see such content.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme