window.history:包含浏览器的历史,可以不时用window这个前缀
history.back():加载历史列表的前一个URL
history.forward():加载历史列表的后一个URL
window.navigator():包含有关访问者浏览器的信息
<br>
<hr>
<input type="button" value="get" onclick="getNavi()">
<div id="example"></div>
function getNavi() {
var txt = "<p>Browser CodeName: " + navigator.appCodeName +"</p>";
txt += "<p>Browser Name:" + navigator.appName +"</p>";
txt += "<p>Browser Version:" + navigator.appVersion +"</p>";
txt += "<p>Cookie Enabled:" + navigator.cookieEnabled +"</p>";
txt += "<p>Platform:" + navigator.platform +"</p>";
txt += "<p>UserAgent:" + navigator.userAgent +"</p>";
txt += "<p>System Language:" + navigator.systemLanguage +"</p>";
document.getElementById("example").innerHTML = txt;
}