查看效果:js獲取上一頁url
<html>
<head>
<title>js獲取上一頁url,js獲取前一頁地址,javascripts獲取上一頁url,javascript獲取前一頁地址</title>
<meta http-equiv="keywords" content="" />
</head>
<body>
<script language="javascript">
document.write("js獲取當(dāng)前域名"+window.location.host+"或者"+document.domain+"<br>");
document.write("js獲取當(dāng)前url"+window.location.href+"<br>");
document.write("js獲取上(前)一頁url"+document.referrer);
</script>
</body>
</html>
更多信息請查看IT技術(shù)專欄