当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM referrer 属性

HTML DOM
DOM TableRow 对象
DOM Textarea 对象
DOM Window 对象

HTML DOM referrer 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 405 ::
收藏到网摘: n/a

Definition and Usage

The referrer property returns the URL of the document that loaded the current document.
referrer属性可以返回加载当前文档的上一个URL地址

Syntax
语法

document.referrer


Example
举例

<html>
<body>
这个页面的来源页面地址为:
<script type="text/javascript">
document.write(document.referrer)
</script>
</body>
</html>


演练

Return the referrer of a document
返回文挡的上一个地址

评论 (0) All

登陆 | 还没注册?