I've fairly new to Javascript and can't find an answer to this. I want the user to be able to click on a link at the top of the page and take them to a contact form. I'd like the URL of the previous page (the one they were on when they clicked on contact) to be entered in to a hidden field on the form. This is so people can report broken links and we know where on the site they requested the contact form from. Or there may be a better way to do this?