• Dynamic change of HTML title

    Sometimes in AJAXized world you would like to dynamically change the HTML page title so it gets bookmarked (or cached by search engine) correctly or at least differently).
    After the page has been rendered, the only way to change content is via JavaScript (for those who doesn’t know – “ajax” is just a buzzword for one of the JavaScript’s features and not a mumbojumbo technology).
    There are numerous ways to change the dynamic title in proper way by using external snippets, but the very basic is simple – just change the global “document” property called “title”. And this can be done also by placing JavaScript anywhere in page source.

    <script type=”text/javascript” language=”JavaScript”>
    document.title=’your custom title’;
    </script>

    I must disclaim that OF COURSE, <script> outside <head> is bad manner and not wrapping around CDATA is even bigger crime. But those who know that probably will not google for this stuff anyway.

230 Comments


  1. noutati interesante si utile postate pe blogul dumneavoastra. dar ca si o paranteza , ce parere aveti de inchiriere vile vacanta ?.

  2. Spot on for this write-up, I seriously believe this amazing site really needs even more attention. I’ll probably be again to learn much more, thanks for that tips.

  3. Howdy just wanted to give you a quick heads up. The words in your article seem to be running off the screen in Ie. I’m not sure if this is a formatting issue or something to do with browser compatibility but I thought I’d post to let you know. The layout look great though! Hope you get the problem resolved soon. Cheers

  4. backlinks says:

    The Spirit of the Lord is with them that fear him.

  5. Excellent post. I learned a lot reading it. Thanks.

  6. mbt outlet says:

    A helpful topic is worth provide feedback. I presume that you should create more on it issue, it could not even be considered a taboo area however generally people are insufficient to discuss on this sort of information. To the next. Cheers

  7. girokonto says:

    Your page looks a bit strange when i use my mobile firefox browser on my phone. You want to check that please.

  8. That’s a great post. Thank you so much.

  9. ftp server says:

    That’s a great post. Thank you so much.

  10. Excellent post. I learned a lot reading it. Thanks.

  11. Hey! This is kind of off topic but I need some advice from an established blog. Is it difficult to set up your own blog? I’m not really techincal but I can figure issues out pretty quick. I’m thinking about creating my own but I’m not confident exactly where to start. Do you’ve any concepts or suggestions? Cheers

  12. Excellent post, mate! Thanks for the useful information

  13. I notice there is definitely lots of spam on this blog. Do you need help cleaning them up? I may well support between courses!

  14. There is noticeably a bundle comprehend this. I suppose you created specific good points in functions also.

  15. Thank you for taking the time to set up this article. I can tell that you contributed plenty of time researching for this guide. I just need you to know that you’re appreciated. I learned a lot!

  16. Awesome material you fellas got these. I truly like the theme for the website along with how you organized a person who. It’s a marvelous job For certain i will come back and check out you out sometime.

  17. Excellent post. I learned a lot reading it. Thanks.

  18. This style is steller! You clearly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (nicely, almost…HaHa!) Amazing job. I actually enjoyed what you had to say, and much more than that, how you presented it. Too cool!

  19. That’s what i call “great post”. Thank you so much.

  20. That’s a great post. Thank you so much.

  21. zoppini says:

    Excellent post, mate! Thanks for the useful information

  22. Interesting. I’ve been looking about different blogs for info. I adore utilizing this web site for fun. Excellent approach to support learn!

  23. Awseome article, I am a big believer in commenting on sites to let the blog writers know that they’ve added some thing worthwhile to the world wide web!

  24. I really enjoyed this thread, please keep posting info like this.

  25. That’s what i call “great post”. Thank you so much.

  26. Excellent post. I learned a lot reading it. Thanks.

  27. Nice post. I uncover out some thing more challenging on different blogs everyday. Most commonly it really is stimulating to read content material using their company writers and exercise a bit something from their web site. I’d choose to apply certain together with the content material on my own weblog regardless of whether you do not mind. Natually I’ll offer you a link in your internet weblog. A lot of thanks sharing.

  28. Excellent post. I learned a lot reading it. Thanks.

  29. you can have a wonderful weblog here! would you wish to make some invite posts on my weblog?

  30. Nice read, I just passed this onto a colleague who was performing just a little research on that. And he just bought me lunch since I found it for him smile So let me rephrase that: Thank you for lunch!

Trackbacks/Pingbacks

  1. Gabste9
  2. Euro Sondages
  3. Dressage chien
  4. pret personnel
  5. Social Fan Exchange
  6. comparatif assurance auto
  7. φωτογραφος γαμου
  8. dynamics gp
  9. Learn Piano
  10. cafelearn72
  11. skin care

Leave a comment