JavaScript Triggers

by Tom

A great article at A List Apart explains JavaScript Triggers and why and how to best use them. I love A List Apart–it’s amazing how high the quality of writing is on the site in combination with some of the best articles from a technical perspective you’ll find anywhere about web design and web programming.

This article is no exception, beginning with an explanation of the three separate components of the front end of a site: the presentation layer, covered by the CSS; the behavior layer, which is mostly responsible for the aesthetics and usability of your site and is handled by JavaScript, as well as the structural layer which is formed by XHTML.

From there it lays out different triggers and asks the question of how to add good JavaScript triggers with which we can pass a general alert as well as an element specific value to the script?

If you found this helpful or interesting, please share it!

Leave a Comment

Previous post:

Next post: