Reputation: 1287
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
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.
Upvotes: 1