JavaScript Triggers

2nd Feb 2005

Brilliant article by Peter-Paul Koch detailing how to use id and class attributes in your XHTML to trigger Javascript functions. Additionally, he suggests adding custom attributes to your markup to allow for a cleaner structural layer. Very nice!