How to get the page's url (from the address bar) and submit it by a form?
Apr 24th, 2003 05:42
Russ Locke, Nel MS, Luis Carlos,
to get the url out of the address bar... use:
then to set it to a hidden input element on your form...
id your forms hidden input element which will hold the url address:
<input type='hidden' id='urlAddress' value=''>
document.getElementById('urlAddress').value = location.search;
either stick this code in the body onload function or
put in a form submit function...