[thelist] javascript default event handlers, default events. [TIP]

Matt Warden mwarden at gmail.com
Tue Aug 30 07:41:54 CDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kowalkowski, Lee (ASPIRE) wrote:
> Excuse my ignorance, but when did it become preferred to do any of that over
> adding the event to the HTML itself?

The idea of separating behavior from the markup has been taking off
for the past year or so. Basically, the thought is not that these
handlers should only be attached for those users who have JavaScript
enabled, and thus it is to be done via script.

See e.g.
http://www.onlinetools.org/articles/unobtrusivejavascript/chapter1.html
for more.

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDFFQSAQ0d4HGyPE8RAiIHAJ9tOEjXCVauaVJbxL6a9fXC7lqU0wCffb3Z
SUqJiBGACdBWk7KFjjoYaeA=
=OLyp
-----END PGP SIGNATURE-----


More information about the thelist mailing list