Page 1 of 1

auto submit.....

Posted: Mon Mar 15, 2004 4:50 pm
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

Posted: Mon Mar 15, 2004 5:40 pm
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.