JavaScript Reference/Javascript Properties/referrer
Версия от 18:30, 25 мая 2010; (обсуждение)
"referrer" Example
<html>
<body>
<script language="JavaScript">
function function1() {
var m = document.referrer;
alert(m);
}
</script>
<input type="button" value="Get referrer" onclick="function1();">
</body>
</html>
"referrer" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"referrer" Syntax and Note
Note:
Read-only property.
Returns an empty string if the page has no referrer.
Syntax:
document.referrer