Javascript Email A Friend For You.
Sep 10, 2005
Heres the javascript I use to email a friend.
I like it because it works on any page (and we have over 3,500 using it).
It's simply results in a mailto filling in the page TITLE as the mail Subject and the URL as the mail text.
<script language='JavaScript'><!--
document.write ('<A href="mailto:?subject=')
document.write (document.title)
document.write ('&body=')
document.write (document.URL)
document.write ('"><IMG src="/ads/envelope.jpg" width="50" height="25" border="0" title="Email this page to a friend."/></A>')
// --></script>
Do let me know any tips to enhace it, or things to watch out for.
View 1 Replies
ADVERTISEMENT
Mar 3, 2006
I have code that works fine in Firefox, but not in netscape.
I would like to open a popup window to display an "email a friend page".
this is my html/javascript
HTML Code:
<a class="emailicon" href="/e/email" title="Email Article" return false;">Email</a>
But my window does not open that size. What am i missint. IE and netscape show a full 100% size browser window.
View 1 Replies
View Related
Nov 16, 2011
Is anyone aware of a website which me and a friend can simultaneously edit code together? Much like google docs, but for code?
View 2 Replies
View Related
Jul 23, 2005
Does anyone have any idea whether the "modern" email spiders are
capable to understand javascript. If one makes a search with google
one finds out that it is widely believed that email spiders only read
the html code and so it is trivial to hide email addresses from them
using javascript. But is that so? One of our system engineers here
that they do read JS and even says that they nowadays directly look at
what appears on the screen ?!?
View 4 Replies
View Related
Jan 24, 2007
Can i send an email from JavaScript? Is it possible? If yes please the
code to send email using javascript...
View 9 Replies
View Related
Jan 10, 2006
I am using a javascript to format an email, the problem is that when the user clicks the submit button they are presented with the email and they have to click send in the email. Is there anyway to do this without the email being shown to the user?
I am able to do it using a simple mailto: but this prevents me from formatting the body of the email and other functions I need.. Code:
View 5 Replies
View Related
Jan 29, 2007
what is the javascript validation for the email address like
php.ycho@gmail.com
i used the simple validation like
"^w{1,}@w{1,}(.w{1,}){1,}$"
which works well for php@gmail.com but doesnot work for php.ycho@gmail.com
can anybody make a modification to above pattern to work for php.ycho@gmail.com
View 7 Replies
View Related
May 1, 2002
I need a simple js function that will check if the value (an email address) in two text fields match.
If someone enters creole@creole.com in "fieldOne" and creoel@creole.com in field two it would throw an error. If they matched, the form would submit silently.
Can someone help me out? I think it should be easy, and I'm trying to do it myself, I'm just not good enough at js.
View 21 Replies
View Related
Aug 17, 2006
I created an extension for firefox that acts as a bookmarklet for
Gmail, Yahoo, and all standalone clients (via the mailto function).
Upon clickin on the toolbar-button it will send a user the the title
and url in the subject line and body respectively.
Recently, I've been bombarded with emails on adding a feature which
will allow the user to send the page as it is displayed (none of the
coding).
I;ve been researching for a couple of days now and I've come up with
nothing.
I know in IE 5.5+ they have a feature that does this but no one seems
to know how to emulate this feature.
I thought there might be somethign along the lines of
"content.document.*" like there is for the title fo a document,
"content.document.title".....
View 1 Replies
View Related
Jun 22, 2007
I want to send form data to given email id, I'm using mailto:ur@mail.com, but it doesn't working it dirsctly goes to localSystem A/C i.e outlook.. Code:
View 1 Replies
View Related
Jan 17, 2009
Heres my javascript code that will verify email from email input field and check if the checkbox (I agree condition) was checked:
[Code]....
However, this will work fine when calling with a link "javascript:validate('inputForm');" but if I try to prevent users by submitting form with pressing enter I put it in form onSubmit parameter: <form .. onSubmit="javascript:validate('inputForm');"> which will check the forms and submit data (do return) no matter if it matched or no.
View 11 Replies
View Related
Apr 29, 2006
Last week after much searching, I found the answer to my problem in
this newsgroup. I can't find the thread from which I got my solution,
but I wanted to report back what worked.
When the site visitor fills out the form and submits it, this calls a
rather ordinary asp script like formmail.asp that sends the emails and
displays a "thank you" web page. At the very end of my "thank you" web
page I placed the following:
<script type="text/javascript">
location.href="FileToDownload.exe"
</script>
This causes the file download to get triggered, and asks the user if
they want to save the file. In limited testing this appears to work
fine in both Firefox and IE.
View 13 Replies
View Related
Nov 11, 2011
I'm a mediocre website designer i know html , at JS i'm to noob to actualy make something of my own :) just Edit, i'm still learning and atm i'm working on a web project and I'm struggling to find a way to Filter email addresses to redirect my New Members to their e-mail provider, for example if they would register newmmember@hotmail.com to be forwarded to www.hotmail.com so they would login and activate their account, or if they enter @yahoo.com to be forwarded there . Can you please point out a few things i'm eager to learn how to Forward User to email provider after he creates his account . Or how can i forward email to URL inside my webpage , this could help me with another ideea i have, again this would have to be filtered @yahoo.com , @hotmail.com etc , to be forwarded to a local URL inside the site depending on what Email Provider they enter .
View 5 Replies
View Related
Jul 20, 2005
I have a frameset and one of the frames contains a page that is created on the fly, an
actual word document. I want to have a button in one of the other frames that emails this created page as an email attachment using the email client (outlook or whatever). I created a function as follows:
<script language="JavaScript">
function mailIt()
var page = parent.QandA;
document.write 'mailto: sendmail@example.com?subject=The
document&Attachment='
document.write page;
}
</script>
Which is then called from a button, but it doesnt work! QandA is the
name of the frame that contains the document I want to email as the
attachment.
View 9 Replies
View Related
Mar 29, 2011
Im using the old nopcard scripts on my site. It does every thing right except it does not send a Email to my to my email adres. I dont know how to correct this because i dont know Javascript. I include the script if anybody know how to alter it so that it will send the info to my email adres as well.
The checkout.pl script :
View 3 Replies
View Related
Oct 12, 2010
i hv an input box like this
<td >
<input type="text" name="emailid" id="emailid" onBlur="checkMail(this)" value="emailId" onFocus="this.value=''">
@domain.com</td>
[Code]...
Now problem is as u can see .. i hav to check just "EMAIL ID" not the full "Email address".. i cud not be successful to edit the JS function.
View 1 Replies
View Related
May 7, 2009
i have some script java script which is working but i want to do it some thing else
[Code]....
This script is working for email validation also if email box is empty it says to fill it i want that for all if some one left any box in form it says fill that. i have tried many ways but failed that's why posting here. and the last function is for contactno INPUT field so one can only put number in the field. HTML CODE
[Code]...
View 1 Replies
View Related
Jun 14, 2009
Looking for a good tutorial on how to use jQuery to read email sent tomy site's email address, and how to send email through my site'semail. Basically, how to construct the server email portion of
View 11 Replies
View Related
Apr 6, 2009
Is it possible to create a page (with javascipt) that will send an email to the "me" but the user can't see the destination email address? Im wondering if I can do the "party" with Javascript without using some server page like PHP.
View 1 Replies
View Related
Jul 6, 2011
When checkbox is clicked email is necessary and if checkbox is not clicked email is not necessary for submitting a button give me the code:
View 1 Replies
View Related
Jul 23, 2005
I've found a snippet of code on one of the js websites
that creates trailing text behind the mouse. Works fine in a website, but I
can't make it work in an email. No spam intentions, just fun amongst
friends. I dropped the code between the <head> tags, just like with a
website, but no joy. Should js work in an email? If so, any suggestions?
View 2 Replies
View Related
Aug 29, 2001
Does anyone know of an email to SMS gateway?
View 1 Replies
View Related
Jul 23, 2005
I'm using the following script on my web site. I have done this in
order to keep web spider programs from harvesting my email address.
I want to have the "Subject" line filled in also.
Does anyone know how I can do that? Code:
View 20 Replies
View Related
Sep 13, 2005
I am using prototype.js and part of what is sent to formmail.cgi to be
sent to me by email is a string containing 5 sets of numbers.
I would like to put some carriage return characters in so that these 5
sets are each displayed on a separate line in the email.
How do I do this? I have tried adding "
", <br>, e and
.....!
View 8 Replies
View Related
Mar 27, 2006
How i can send e-mail using JavaScript?
View 11 Replies
View Related
Jul 30, 2003
Email Validator JavaScript (with and without RegExps):
<script language="JavaScript">
//////////////////////////////////////////////////
//<Email Validator>//
// by Premshree Pillai//
//http://www.qiksearch.com//
//http://premshree.resource-locator.com//
//////////////////////////////////////////////////
/* Without RegExps */
function isEmail(who) {
function isEmpty(who) {
var testArr=who.split("");
if(testArr.length==0)
return true;
var toggle=0;
for(var i=0; i<testArr.length; i++) {
if(testArr[i]==" ") {
toggle=1;
break;
}
}
if(toggle)
return true;
return false;
}
function isValid(who) {
var invalidChars=new Array("~","!","@","#","$","%","^","&","*","(",")","+","=","[","]",":",";",",",""","'","|","{","}","","/","<",">","?");
var testArr=who.split("");
for(var i=0; i<testArr.length; i++) {
for(var j=0; j<invalidChars.length; j++) {
if(testArr[i]==invalidChars[j]) {
return false;
}
}
}
return true;
}
function isfl(who) {
var invalidChars=new Array("-","_",".");
var testArr=who.split("");
which=0;
for(var i=0; i<2; i++) {
for(var j=0; j<invalidChars.length; j++) {
if(testArr[which]==invalidChars[j]) {
return false;
}
}
which=testArr.length-1;
}
return true;
}
function isDomain(who) {
var invalidChars=new Array("-","_",".");
var testArr=who.split("");
if(testArr.length<2||testArr.length>4) {
return false;
}
for(var i=0; i<testArr.length; i++) {
for(var j=0; j<invalidChars.length; j++) {
if(testArr[i]==invalidChars[j]) {
return false;
}
}
}
return true;
}
var testArr=who.split("@");
if(testArr.length<=1||testArr.length>2) {
return false;
}
else {
if(isValid(testArr[0])&&isfl(testArr[0])&&isValid(testArr[1])) {
if(!isEmpty(testArr[testArr.length-1])&&!isEmpty(testArr[0])) {
var testArr2=testArr[testArr.length-1].split(".");
if(testArr2.length>=2) {
var toggle=1;
for(var i=0; i<testArr2.length; i++) {
if(isEmpty(testArr2[i])||!isfl(testArr2[i])) {
toggle=0;
break;
}
}
if(toggle&&isDomain(testArr2[testArr2.length-1]))
return true;
return false;
}
return false;
}
}
}
}
/* With RegExp */
function isEmail2(who) {
var email=/^[A-Za-z0-9]+([_.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_.-][A-Za-z0-9]+)*.([A-Za-z]){2,4}$/i;
return(email.test(who));
}
</script>
View 9 Replies
View Related