/    Sign up×
Community /Pin to ProfileBookmark

Send Email When WebPage Opened

When the button is clicked, it sends me an email. Is there a way to have that email sent, when someone goes to the webpage that button resides on (button would be hidden, no click required)? Thanks.

<html>
<script type=”text/javascript”>
function goto()
{
document.getElementById(‘goto1’).submit();
}
</script>

<form id=”goto1″ action=”http://www.webformdesigner.net/wfd_f2.php?id=xxxxxxx” method=”POST” enctype=”application/x-www-form-urlencoded”>
<input type=”hidden” name=”subject” value=”Website Visited”>
<input type=”hidden” name=”message” value=”The website was visted”>
<input type=”button” value=”Click to Send Email” id=”goto1″ onclick=”goto()”>
</html>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Jan 26.2006 — window.onload = function(){

..............submit();

}


Eric
Copy linkTweet thisAlerts:
@bokehJan 26.2006 — Wouldn't it be easier to do this serverside (or just check your Apache log)?
Copy linkTweet thisAlerts:
@swtransauthorJan 26.2006 — that works, thanks!
×

Success!

Help @swtrans 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...