/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Timed form submission

Is there a way to submit a form after a certain period of time has passed?

I want to collect mouse positions for 30 seconds at 1 second intervals.
This I can do, but what I want is to send the information at the end of
the 30 seconds automatically (without clicking a ‘submit’ button).

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@samliewNov 24.2007 — [code=html]<body onload="window.setTimeout(document.form.submit(), 30000)">[/code]
Copy linkTweet thisAlerts:
@JMRKERauthorNov 24.2007 — Thanks. I'll give that a try.

Since I'm using another setTimeout() function, I assume there is not a conflict if it is set elsewhere. (?)

Just let me know if I'm heading for disaster!
Copy linkTweet thisAlerts:
@samliewNov 24.2007 — Shouldn't be a problem.
Copy linkTweet thisAlerts:
@JMRKERauthorNov 24.2007 — Thanks again for the prompt reply!
×

Success!

Help @JMRKER 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 4.29,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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