daveVk

msg:4473708 | 12:13 am on Jul 9, 2012 (gmt 0) |
<div id="newTitle">Content I need for the title</div> after loading content document.title = $("#newTitle").html();
|
webfoo

msg:4474636 | 3:17 pm on Jul 11, 2012 (gmt 0) |
Perfect! Thanks a lot.
|
rocknbil

msg:4474671 | 4:18 pm on Jul 11, 2012 (gmt 0) |
One has to wonder why you need this; the title tag serves a Very Important Purpose in respect to SEO, and the Javascript is not likely to execute for search engines (i.e. the title will be "Default Title" for all these pages in SERPS.)
|
webfoo

msg:4474715 | 6:11 pm on Jul 11, 2012 (gmt 0) |
Yes I understand that rocknbil. But this okay for a number of reasons. First, I don't want or need this site to be found in a search engine. Second, the purpose of the dynamic title is to alert the user to new content if they are focused on a different window. Sort of like Gmail changes the title when you have a new chat message.
|
|