document.title 可取得目前頁面 title 標籤中的文字。
document.write(document.title);
可用來顯示目前頁面名稱、產生麵包屑、搭配分享功能,或作為列印頁面的標題。
document.title 可取得目前文字;若要修改,可直接設定 document.title = "新標題"。