[thelist] dHTML Form Elements && tip re: Disabling the <enter > key to submit a form.

Aylard JA (James) jaylard at equilon.com
Fri Dec 1 12:33:17 CST 2000


Tab,

> or is onsubmit() something that will get seamlessly ignored by
> non-js browsers?

	By definition, no event handler or function will work without
client-side scripting enabled. But as you and jeff agreed, working in a
controlled environment such as an Intranet (assuming that desktop
configurations are locked down so that users can't independently turn off
scripting) makes moot many of the concerns over submitting a form via script
rather than via built-in form-handling capabilities. However, as one who
does work within a controlled Intranet environment, I would still recommend
relying on the browser's built-in form-handling capabilities rather than on
the submit() method if for no other reason than that it is a good discipline
for when you do code for a less-controlled environment.

James Aylard




More information about the thelist mailing list