PDA

View Full Version : Can change title from the html?


agentili
06-09-2009, 01:45 AM
I have this website where the head of the page is shared , it comes from detalhes.php and then when u click on a page it goes to detalhes.aspx?CON_Id=1
detalhes.aspx?CON_Id=2
detalhes.aspx?CON_Id=3
detalhes.aspx?CON_Id=ETC

So what I want is to set a value for title, keyword and description of the meta tag for each page.

Is there any way to do it with javascript?

Thanks and sorry if the question is stupid.
Regards

A1ien51
06-09-2009, 02:36 PM
It is not going to help you with search engines if that is what you are hoping.

Eric

agentili
06-09-2009, 02:53 PM
It is not going to help you with search engines if that is what you are hoping.

Eric

Dear Eric,

Yes that is exactly what I am looking for. Do you mind to explain me why? THANKS A LOT my friend.

Kind Regards

A1ien51
06-09-2009, 03:20 PM
Most search engines crawl the web with JavaScript disabled.

agentili
06-10-2009, 03:10 AM
Most search engines crawl the web with JavaScript disabled.

Hoiw about if i do it server code by asp?

dev.genius
02-06-2011, 06:21 PM
Here is how you can change the title from javascript:

document.title = "My String"

venegal
02-06-2011, 07:06 PM
This thread is *ancient*, and even if the OP were still around, it has been clearly established that a Javascript solution won't solve his problem.

Please don't dig up old threads just for giving advice that won't help.