platypus55
Programmer
I want to put document.referrer into a form before sending it off. <br>
<br>
form is name theform (let's say) <br>
has a hidden named theurl //this is where I want document.referrer to go<br>
<br>
After all the html for the form I say<br>
<br>
<script language="javascript"><br>
document.theform.theurl.value = document.referrer;<br>
</script><br>
<br>
But what gets sent is the original value not document.referrer! I've tried other things too, like an onsubmit routine but I think passing it as a parameter only works on a copy or something because nothing seems to change it!!! This should be trivial. What am I doing wrong!!
<br>
form is name theform (let's say) <br>
has a hidden named theurl //this is where I want document.referrer to go<br>
<br>
After all the html for the form I say<br>
<br>
<script language="javascript"><br>
document.theform.theurl.value = document.referrer;<br>
</script><br>
<br>
But what gets sent is the original value not document.referrer! I've tried other things too, like an onsubmit routine but I think passing it as a parameter only works on a copy or something because nothing seems to change it!!! This should be trivial. What am I doing wrong!!