I have a ‘send to friend’ form on a client’s web site. The form works great
except for one thing – I can’t get the URL of the current page to auto-populate
in the textarea on the form.
http://www.litigationbusters.com/expert-witness.shtml
If you scroll down to the bottom, in the lighter blue bar is a ‘Send’ link. Click
it and the form will appear.
I am hoping to be able to do this using jQuery or something else equally platform
independent, since the site is on a Windows server for now, but may be moving to
a Linux server in the near future.
Thanks!
To get the URL of the current page with jQuery, you can use
or to simply read the current URL without jQuery, you can use
To populate the textarea with that value when the page loads