Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get referrer

// website2.html
<img src="website3.com/pxl.gif" id="pxl" />
<script>
document.getElementById('pxl').src += '?ref=' + encodeURIComponent(document.referrer);
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #referrer
ADD COMMENT
Topic
Name
6+3 =