Reputation: 785
I've currently got a website in which a div is updated to the contents of the same div on another page via Javascript, allowing a seamless transition between webpages, but how do I make the title of the webpage update to the title of the new webpage?
Further clarification: I know how to change the title of the webpage, but how do I get the title of a specified webpage?
Upvotes: 2
Views: 1859
Reputation: 665
var newWindow = window.open("www.site.com","Title","options...");
newWindow.title = "rename here";
Upvotes: 1
Reputation: 413682
You can get/set document.title
.
document.title = "New Title For Page";
Upvotes: 4