Hi guys, I'm trying to submit a form with the current web page I am on. I really don't know how to get the current URL to pass along to the form. This is driving me crazy!
Current code is very simple:
Code:<script> function SubmitForm() { document.getElementById('url').value = WHAT GOES HERE? document.forms['myform'].submit(); } </script> <body onload="SubmitForm()"> <form id="myform" action="PageSubmittingTo" method="post"> <input type="text" name="url" id="url"> <input type="submit" name="s"> </form> </body>


LinkBack URL
About LinkBacks



Reply With Quote
).