I am using Internet Explorer to run some code where I use javascript code window.open. Here is a sample code below. This is written in a page r_test1.asp
<script type="javascript">
window.open('r_test2.asp');
</script>
A window open naming r_test2.asp and there I am trying to get the referer. The code of page r_test2 is
response.Write(request.ServerVariables("HTTP_REFERER"))
The problem is I get referer in mozilla or chrome but not in Internet explorer which I need it badly there
Internet explorer indeed does NOT pass a referer when you use the window.open event.
A nice alternative solution (to mimick a click on a hyperlink so IE does set the referer) has been previously posted here on StackOverflow:
JavaScript window.location does not set referer in the request header