JPNoob
Joined: 08 Oct 2007 Posts: 9
|
Posted: Thu May 01, 2008 5:12 pm Post subject: document.location within <a href |
|
|
im trying to create an mailto link with the current url embedded in the body of the email:
| Code: |
| <a href="mailto:?subject=URL&body=<script language='javascript'>document.write(location.href;);</script>">Email</a> |
It is not executing the javascript, but writing it out.
Any ideas? My javascript is lame! |
|