查看效果: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获取当前域名"+window.location.host+"或者"+document.domain+"<br>");
document.write("js获取当前url"+window.location.href+"<br>");
document.write("js获取上(前)一页url"+document.referrer);
</script>
</body>
</html>
中国足彩网信息请查看IT技术专栏
2025国考·省考课程试听报名