Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I have the current browser url posted to a form?? 1

Status
Not open for further replies.

craigc

Programmer
Mar 7, 2001
2
US
I have a very simple survey html form that exists on multiple pages throughout a site. I am trying to use jscript to assign the value of the current url (as it exists in the browser's address window - not from the html code of the page) to a hidden variable so it can be passed to the form processing cgi and recorded in a logfile. Any help would be GREATLY appreciated!!! I'm thinking this is a pretty basic thing but I'm not very familiar with javascript yet.
Thank you.
 
document.formname.hiddenelement.value = window.location luciddream@subdimension.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top