[thelist] javascript default event handlers, default events. [TIP]
Kowalkowski, Lee (ASPIRE)
lee.kowalkowski at hmrcaspire.com
Tue Aug 30 03:54:14 CDT 2005
> -----Original Message-----
> From: VOLKAN ÖZÇELIK [mailto:volkan.ozcelik at gmail.com]
> Sent: Monday, August 29, 2005 9:42 PM
>
> document.getElementById("FrmPage").onsubmit=FrmPage_submit;
>
> just a single line and it works as expected as well.
>
> Moral of the story:
> Take the simplest solution whenever possible. The simplest possible
> solution is most of the timethe optimum solution, or is a solution
> with the highest proximity to truth.
Excuse my ignorance, but when did it become preferred to do any of that over
adding the event to the HTML itself?
I thought that was the simplest, most robust and cross-browser compatible.
What have I missed?
- LK
===========================================================
Our e-mail domain has now changed from iraspire.com to hmrcaspire.com. Please update your address books.
===========================================================
More information about the thelist
mailing list