HTML DOM Document對象
title屬性設(shè)置或返回的文檔的當前標題(在<title>元素中的文本)。
返回標題屬性:
document.title
設(shè)置標題屬性:
document.title = newTitle
var x = document.title;
所有瀏覽器完全支持title屬性: