-1

I want to give the dynamic title from javascript of a master page. Whenever I am doing from code behind like this:

   this.Master.Page.Title = "Yellow Page home, Gangtok, India | CliqueCity.com";

I have googled for solution but unable to get. I know this is so simple to add dynamic title from java script. My simple question is how can I add title from javascript

Arunesh
  • 287
  • 5
  • 18
  • maybe this would help http://stackoverflow.com/questions/413439/how-to-dynamically-change-a-web-pages-title – Zaki Jan 29 '14 at 09:08
  • Possible duplicate of [How to dynamically change a web page's title?](https://stackoverflow.com/questions/413439/how-to-dynamically-change-a-web-pages-title) – lolbas Feb 26 '18 at 07:22

2 Answers2

0

Simply select the title using jQuery

$('title').text('Hello');
iJade
  • 20,206
  • 52
  • 141
  • 227
-1

If you are using jQuery, you can add/use this:

$(document).attr("title", "New Title");

"New Title" represents title which you want to give to your page

Pankaj Makwana
  • 2,964
  • 6
  • 28
  • 45
Billu
  • 1
  • 1