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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send page/email page

Status
Not open for further replies.

Montroze

Technical User
Apr 20, 2001
113
CA
Does anyone have a script, java/javascript that will basically do the same thing as the Email-it does on here?
 
I think what Email It is doing here is just opening a page. The actual emailing part is handled in that page.
Through javascript you can email the link to the current page that you are on. Check this code.

<HTML>
<HEAD>
<TITLE> Email </TITLE>
</HEAD>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--
function email()
{
var loc=&quot;mailto:&quot; + document.frm.mailid.value + &quot;&subject=Hi&body=Check out this page -> &quot; + document.URL ;
location.href=loc;
location.reload;
}
//-->
</SCRIPT>
<BODY BGCOLOR=&quot;#FFFFFF&quot;>
<form name=frm>
Enter your mail ID here :
<INPUT TYPE=&quot;text&quot; NAME=&quot;mailid&quot; ID=&quot;mailid&quot;>
<BR><BR>
<INPUT TYPE=&quot;button&quot; value=&quot;Email This Page&quot; onclick=email()>
</form>
</BODY>
</HTML>

Regards
Mubariz
 
I guess I am looking for something along those lines but with the box where people can copy and paste in something and then email it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top