Introduction:
Here I will explain how to change/set page title using jQuery or change the title of page dynamically with jQuery.
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.
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. |
|||
|
|||
3 comments :
Man, I love your blog!
Keep up the good work!!
Love and Regards,
Jack
thank you very much!
its coming but not showing in viewframe soure of browser
Note: Only a member of this blog may post a comment.