|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Setting title via javascript ok for SEO?
Hey guys, wasn't sure where to post this one.. But i have a script which sets the page title - will google treat this the same as a title set statically? i mean will it ignore it because its scripted?
thanks |
|
#2
|
||||
|
||||
|
If your title is being set using javascript, the search engines won't see it. There's nothing wrong with dynamically setting titles using server side scripting, since the output is plain html, but to do it on the client side is going to cause problems.
|
|
#3
|
|||
|
|||
|
Quote:
Hmmm thats quiet annoying because at the moment obtaining the title in my header template from grabbing the innerHTML of the #mainHeader element in my body template...bit of a hack i know lol but it works quiet well... Anyway something to consider.. Thanks Jag! |
|
#4
|
||||
|
||||
|
Much better to find a way around this problem on the server side. The page title element is one of the most important on-page SEO factors, so it's not something you want to have ignored.
|
|
#5
|
|||
|
|||
|
Thanks Jag, i've changed it over to a serverside method.. thinking about it again it makes complete sense, obviously bots buffer the page content and since js is clientside, the bot would have just seen the raw script
|
![]() |
| Viewing: SEO Chat Forums > Other > SEO Scripts > Setting title via javascript ok for SEO? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|