document.referrer
从page a点链接进page b,但在page b 里用document.referrer不能获得page a的url是怎么回事
IE、Firefox浏览器都没用
------解决方案--------------------
不会吧.
试试:
- HTML code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<script type="text/javascript">
document.write('<a href='+document.referrer+'>返回前一页</a>');
</script>
</body>
</html>