I am working on a website and was wondering I can imitate one of those forms where you can send a friend an email. I need the form to utilize the email that a person would put in the text field and then send a copy of the form to that address. Any help would be appreciated!
var email_subject = 'Check out this web page I found...';
var email_body = 'Short description of this page';
var page_url = window.self.location.href.split( '?' );
page_url = page_url + '?source=email_friend';
var field = document.email_friend_script.address;
window.location = 'mailto:' + field.value + '?subject=' +
escape( email_subject ) + '&body=' +
escape( document.title + ': ' + email_body + ': ' + page_url );
Thanks! I apologize, I am not to familiar with Java. Here is the link to the form I am helping with view-source:http://www.unco.edu/housing/reslifestaff/desk/LoginInfo/ce ntralcoalition-test.html. Where might I integrate that in the current code.
This is a crude standalone script for your visitor to send a link to a "friend"
No connection with your form which sends fom entries to mailto email@example.com
It can be pasted in the document flow on any web page wherever you want its send button and text entry box to appear