[thelist] Automatically clicking submit button?

.jeff jeff at members.evolt.org
Tue Mar 19 11:37:14 CST 2002


chris,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Chris Blessing
>
> Why even bother displaying the button?  Omit the button
> and put this code after the </FORM> in the page:
>
> <SCRIPT LANGUAGE="JavaScript">
> 	document.myFormName.submit();
> </SCRIPT>
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

you're a very naughty developer.

if you're going to use some javascript to submit the form, the least you could do is leave a way for non-js users to submit it.  but noooooo, you had to suggest removing that.  ;p

Links & JavaScript Living Together in Harmony
http://evolt.org/article/thelist/17/20938/

give that a read.  go forth and use javascript responsibly.

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list