I am hoping to automatically fill a hidden text field with the URL of the current page so that I can keep track of where form submissions are coming from. This simple solution will help me streamline my inquiry responses and save time.
To clarify, upon loading the page, the text field should have its value set to "http://www.example.com/".
My goal is to achieve this using only Javascript and HTML.
Any assistance you can provide would be greatly valued. Thank you!