: 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")
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.
More posts by @Lengel546
4 Comments
Sorted by latest first Latest Oldest Best
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
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>
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.