英[rɪˈfɜ:(r)] US[rɪˈfɚ]

vi.mentioned; for; related to; asking for advice

vt.Return Because of...; to turn to; to deliver; to think that... originates from

vt.& vi. Reference, look up

Third person singular: refers now Participle: referring Past tense: referred Past participle: referred

javascript referrer attribute syntax

Function: Return the URL that loads the current document.

Syntax: document.referrer

Description: Null if the current document is not accessed through a hyperlink. This attribute allows client-side JavaScript to access the HTTP referrer header.

javascript referrer attribute example

<html>
<body>
<meta charset="UTF-8">
<p>referrer 属性返回加载本文档的文档的 URL。</p>

本文档的 referrer 是:
<script type="text/javascript">
document.write(document.referrer)
</script>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance