Ben Clarke
Ben Clarke

Reputation: 1287

Does javascript's "document.title" method get indexed by search engines

I'm using javascript / jQuery to dynamically set the html <title> attribute of some pages. The code I'm using is placed well after the <head> tag using $(document).ready(...).

My code is essentially document.title = "Some page name"; which works well, but obviously only with javascript enabled.

So I was wondering if Google would/could read a dynamically set page <title> and use it to index the page?

Thanks

Upvotes: 1

Views: 91

Answers (1)

Ren&#233; Morales
Ren&#233; Morales

Reputation: 106

In my experience, it might. We are developing a website that adds a small price tag before the page's <title> using JavaScript and it appears on Google's search results. Right now I'm trying to find a way to fix this.

enter image description here

Upvotes: 1

Related Questions