jQuery: how to change title of document during .ready()?
The following should work but it wouldn't be SEO compatible. It's best to put the title in the title tag.
<script type="text/javascript"> $(document).ready(function() { document.title = 'blah'; });</script>
Do not use $('title').text('hi')
, because IE doesn't support it.
It is better to use document.title = 'new title';
This works fine in all browser...
$(document).attr("title", "New Title");
Works in IE too