document.referrer

简介: referrer 属性返回载入当前文档的来源文档的URL。如果当前文档不是通过超级链接访问的,则为 null。这个属性允许客户端 JavaScript 访问 HTTP 引用头部。

referrer 属性返回载入当前文档的来源文档的URL。
如果当前文档不是通过超级链接访问的,则为 null。这个属性允许客户端 JavaScript 访问 HTTP 引用头部。

目录
相关文章
|
7天前
|
安全
document.write和innerHTML、innerText的区别?
document.write和innerHTML、innerText的区别?
|
4月前
|
JavaScript 前端开发
document.referrer
document.referrer
33 0
|
JavaScript 前端开发
html、body、document、window 的区别
html、body、document、window 的区别
178 0
html、body、document、window 的区别
|
Web App开发 监控 JavaScript
Document.Referrer丢失的几个原因
来文转自:www.imkevinyang.com/2010/01/document-referrer丢失的几个原因.html   Referrer的重要性 HTTP请求中有一个referer的报文头,用来指明当前流量的来源参考页。
1668 0
|
Web App开发 JavaScript iOS开发
Document.cookie
语法 读取所有可从此位置访问的Cookie allCookies = document.cookie; 在上面的代码中,allCookies被赋值为一个字符串,该字符串包含所有的Cookie,每条cookie以分号分隔(即, key=value 键值对)。
982 0
<iframe/onload=alert(document.cookie)></iframe>
<iframe/onload=alert(document.cookie)></iframe>
1180 0
|
JavaScript 前端开发