Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-30-2010, 08:14 AM #1
- Join Date
- Jul 2010
- Thanked 0 Times in 0 Posts
Appending user email address to window location
EDIT: I SOLVED THIS BY USING "#" instead of "?". Thank you.
My goal is to take a user's email from a form, store it in a cookie, and append it to the window location on the following page. I am doing this so that when a user shares the page with "add this widget" the stats will show me who shared the page.
The problem I have is that
window.location.replace("?"+ user_email);seems to be sending the browser in an infinite loop. Right now it is running as an inline function in the head. I tried calling the function with body onload and had the same problem.
Last edited by thejackkelly; 07-30-2010 at 08:19 AM. Reason: solved problem