/    Sign up×
Community /Pin to ProfileBookmark

Is there a way in Javascript to have an email link popup. I have used and am using a popup script for my links but I need something for email links.

to post a comment
JavaScript

13 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinOct 29.2006 — what exactly do you mean?
Copy linkTweet thisAlerts:
@thechasboiauthorOct 29.2006 — CrazyMerlin

Well you can use javascript to popup a new window for a link, but is there a way to get javascript to popup a new email message like when you click on an email link on the page. When you click on the email link your client software starts and creates a message with the appropriate address and subjest if included. Thanks for the reply
Copy linkTweet thisAlerts:
@CrazyMerlinOct 29.2006 — that doesn't seem to make much sense as the window that pops up is your email client.
Copy linkTweet thisAlerts:
@thechasboiauthorOct 29.2006 — OK, I am talking about a regular html mailto link. I was wondering if there was a way that javascript could accomplish the same thing? I surely hope this explains what I am talking about. Thanks for the help in advance.
Copy linkTweet thisAlerts:
@thechasboiauthorOct 29.2006 — Charles

I understand that I could use CDONTS in windows to send the email myself but the whole thing is that if the user wants to be th person sending the email so that his address gets credit so to speek for the sending of the email. I hope every one is understanding what I am asking. I am goint to try and refrase incase. I have this link an ordinary

<a href="mailto:;lskdjf;lkjasdsf;lkj">asdf</a>

link that I need to be changed to a javascript. The way the links work is that they open up the clients email software so I am looking for some javascript to do the same thing if possible. Thanks for the help.
Copy linkTweet thisAlerts:
@CharlesOct 29.2006 — No can do.
Copy linkTweet thisAlerts:
@thechasboiauthorOct 29.2006 — No can do.[/QUOTE]
So if i understand that there is no way to do this then. Thanks for the answer.
Copy linkTweet thisAlerts:
@ZnupiOct 29.2006 — I'm not sure I understood what you want... but maybe
<i>
</i>window.location='mailto:[email protected]';

is actually what you need? Excuse me if I didn't understand...
Copy linkTweet thisAlerts:
@thechasboiauthorOct 29.2006 — Znupi

This will pop up a new window for a mail link. I will try and see what I get, Thanks for the suggestion. And I think you did understand.
Copy linkTweet thisAlerts:
@thechasboiauthorOct 29.2006 — Znupi

Works like a charm thanks a ton Znupi.
Copy linkTweet thisAlerts:
@ZnupiOct 29.2006 — 
This seems to work in FF and not in IE. Am i missing something
[/QUOTE]

No, you're not. IE is. :p

Joke aside... I just did this :
<i>
</i>&lt;a href="javascript:void(0)" onClick="window.location='mailto:[email protected]'"&gt;Send a mail&lt;/a&gt;

...and guess what? It worked in both IE6 and FF... So there either is a mistake in your code, or IE is being stupid... as usual...
Copy linkTweet thisAlerts:
@thechasboiauthorOct 29.2006 — Znupi

It worked, I appreciate the help immensly.
×

Success!

Help @thechasboi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...