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?
您可以获取/设置document.title
。
document.title = "New Title For Page";
var newWindow = window.open("www.site.com","Title","options...");
newWindow.title = "rename here";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.