/    Sign up×
Community /Pin to ProfileBookmark

I’ve been twiddling with this script, I think i need a fresh pair of eyes on it, any suggestions why it doesn’t function?
Thanks

[CODE]<form name=”eMai”>

<input type=”text” name=”email2″ size=”20″>@company.com

<input type=”submit” value=”send” name=”send” onClick=”mailThi();”>

<SCRIPT LANGUAGE=”JavaScript”>
var initialsubj=”List# 33″
var initialmsg=”Counts:n n Count of Email only: 15 nCount of Fax only: 12″

function mailThi()
{
var a1a2 = document.eMai.email2.value;
window.location = “mailto:”+a1a2+”@company.com?subject=”+initialsubj+”&body=”+initialmsg;
}
</script>

</form>[/CODE]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@sacx13Apr 01.2006 — Unde firefox is working ... no error in java script console ....

Regards
Copy linkTweet thisAlerts:
@felgallApr 01.2006 — Your email program can't be loaded into the browser window (which is what you are asking it to do). Also many people don't have access to a separate email program. If you want an email form to work for everyone you should set the form to call a server side script that creates the email. If you don't have access to load server side scripts to your site then use a third party hosted one (eg. Bravenet).
×

Success!

Help @havey 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.16,
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,
)...