Possible Duplicate:
jQuery: how to change title of document during .ready()?
How to change the name of the page with jquery and ajax?
I would like to use php script and call the load function. The function returns the title to me. How do I set the page title?
JQuery is probably overkill for setting a title when you can just do
document.title = 'foo';but if you really want to use JQuery you can do
$("title").text("foo");It’s probably a lot slower though, although if you’re only doing it once I wouldn’t worry about that.