Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Change Page Title with jQuery Dynamically

Feb 24, 2013
Introduction
  
Here I will explain how to
change/set page title using jQuery or change the title of page dynamically with jQuery.

Description:
  
In previous posts I explained Simple jQuery Dropdown Menu, jQuery Image slideshow with transparent overlay captions,
jQuery Get number of facebook likes, shares count for url, and many articles relating to jQuery, JavaScript, asp.net. Now I will explain how to change/set page title using jQuery.

To change page title dynamically in jQuery we can write the code in different ways like as shown below


Method 1:

<script type="text/javascript">
$(function() {
$(document).attr("title", "Change Page Title with jQuery");
});
</script>
Method 2:

<script type="text/javascript">
$(function() {
$('title').text("New Title");
});
</script>

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

3 comments :

Anonymous said...

Man, I love your blog!

Keep up the good work!!

Love and Regards,
Jack

Anonymous said...

thank you very much!

Live Cricket Score said...

its coming but not showing in viewframe soure of browser

Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.