history.back(-1)
//直接返回当前页的上一页,数据全部消息,是个新页面
history.go(-1)
//也是返回当前页的上一页,不过表单里的数据全部还在
document.write("js获取当前域名"+window.location.host+"或者"+document.domain+"<br>");
document.write("js获取当前url"+window.location.href+"<br>");
document.write("js获取上(前)一页url"+document.referrer);