Hello,
Scenario:
I am creating an email application that would send just the "link to the page" to the recipients. I have a hyperlink on the main window. When clicked, this opens a pop up window with a form that takes all the information. It also has a hidden text box that stores the referer URL (i.e. of the main window).
Problem:
When I use following simple html code on the main window to open the pop up window:
<a href="emailForm.jsp" target="_blank"> and then on my emailForm.jsp I have <input type="hidden" value=<%= request.getHeader("referer"%>> everything works fine.
Since I want window with no bars, I use Javascript on main window to pop up emailForm.jsp (i.e. < href=window.open(emailForm.jsp, id, features)) and when I use <input type="hidden" value=<%= request.getHeader("referer" %>> then the value of the referer URL turns out to be "null".
Can anyone tell me how I can use the Javascript to open a popup window and then get the referer URL on the pop up window.
Scenario:
I am creating an email application that would send just the "link to the page" to the recipients. I have a hyperlink on the main window. When clicked, this opens a pop up window with a form that takes all the information. It also has a hidden text box that stores the referer URL (i.e. of the main window).
Problem:
When I use following simple html code on the main window to open the pop up window:
<a href="emailForm.jsp" target="_blank"> and then on my emailForm.jsp I have <input type="hidden" value=<%= request.getHeader("referer"%>> everything works fine.
Since I want window with no bars, I use Javascript on main window to pop up emailForm.jsp (i.e. < href=window.open(emailForm.jsp, id, features)) and when I use <input type="hidden" value=<%= request.getHeader("referer" %>> then the value of the referer URL turns out to be "null".
Can anyone tell me how I can use the Javascript to open a popup window and then get the referer URL on the pop up window.