Return to Kroll Design home page

JavaScript Tutorials

 
« Return

HTML DOM referrer property.

The referrer property shows the url of the page that you were previously at, as long as you clicked on a link on that page to get to this one.

Code:

<script type="text/javascript">
//<![CDATA[
document.write('The referrer of this document is: ');
document.write(document.referrer);
//]]>
</script>

Output:



 
« Return


©2012 Kroll Design    info@KrollDesign.net    781.910.3694
Last modified: 12/31/1969 7:00 PM