I want to display title in the browser using title tag. I used
<script>$(document.title).html('title');</script>
I want to display title in the browser using title tag. I used
<script>$(document.title).html('title');</script>
<script type="text/javascript"> document.title = "123"; </script>
Try this:
You should use document.title="add your new title here";
But using jquery is not the preferred way for this change in the html document. Its slower as well as not supported in IE6/7 I believe.
$(document).ready(function ()
{
$('title').text("add you new title here");
});