Home › Forums › JavaScript › How to pass URL of current page to form field on linked to page? › Reply To: How to pass URL of current page to form field on linked to page?
August 4, 2014 at 1:30 pm
#177599
Matt
Participant
Soronbe, thanks for your reply to my question. Would you mind pointing me towards some more context in which to use the window.location.href
function?
Please excuse my questions, my JS chops are not very strong.
I would imagine that I store window.location.href
in a variable, but then how do I pass this variable to the next page? Do I store it in the URL? From there, how do I insert it into the form field?