auto submit.....

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

auto submit.....

Post by dull1554 »

is there a way to force the submit of a form with JS, im writing a game and if the player goes bust i want them to see it and then auto submit
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

sure. find the form using whatever DOM method you prefer, for instance documents.formname.submit() or documents.forms[0].submit();

that's all there is to it.
Post Reply