Spiders/bots don't read Javascript so I'm not entirely sure what you're asking?
KP
I am messing up with a situation for which i would like to share with all the members over here and discuss about the situation.
There is a site which is Dynamic and with many dynamic pages which are generated on the user click. So, can i give the dynamic title which is relating to the product in a javascript way:
<script language="javascript">
document.title="Dynamically generated title";
</script>
Can i do what said above for optimization purpose or not.
What will be the Search Engines reaction on doing this will they accept this or any chances of penalization. Please share your ideas and views on it.
Thanks![]()
Have A Close Look SEOContest2008 || Website Design India
Spiders/bots don't read Javascript so I'm not entirely sure what you're asking?
KP
KingPin is quite right, search engine bots don't read or execute javascript code. If you want to dynamically generate page titles, then use a server side scripting language instead of client side scripting.
There is no sense doing it in Javascript no. As dman pointed out you should use a server side script.
KP
Can I just ask what the logic behind this is? Surely if the title tag is constantly changing on a page then Google will only rank the last page title, and probably won't rank you very well for that as Google will see it as a new page?
I think what is being said is that there is a link in a piece of javascript that will link to a dynamically created page. The page will ONLY exist at the time of click through, it is not a hard coded page (similar to a search on a search engine).
So here is my reply:~
On click javascript links will not be followed by Google or other search engines, so the pages will not exist and how you title them irrelevant.
I think OWG hit the nail on the head, again.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks