Home > Web Front-end > JS Tutorial > body text

javascript document.referrer usage_javascript skills

WBOY
Release: 2016-05-16 18:53:32
Original
1126 people have browsed it

Example:
1. The content of the a.html file is as follows:
Browse b.html
2. The content of the b.html file is as follows:






3. When accessing b.html through the hyperlink in a.html, the displayed result is:
http://127.0.0.1: 8180/a.html

Note:
After testing, you need to put the two files in the server to get the desired results. If you put them directly in the local folder, you will get an empty string. , if you directly enter the URL address of b.html in the browser address bar or use the open menu to access b.html, the value of document.referrer is an empty string.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!