1

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?

1 Answer 1

2

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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