I Want to use the HTTP-REFERER of in an HTML page. Is it possible to do it with a JavaScript included in the page itself?

link|improve this question

56% accept rate
feedback

1 Answer

The referring page can be accessed via document.referrer. Like:

<script type="text/javascript">
  alert('This page was referred to from:' + document.referrer);
</script>
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.