Talk:The principles of unobtrusive JavaScript

From W3C Wiki

Future updates

I think there is a subtle problem with the section on event-handlers being pulled out of the html tags. It uses a GetElementByID example, which should only have one element per page (because it's an ID, not a Class), but then mentions the advantages of using the recommended procedure because it will let the programmer avoid having to update lots of elements on the page. I would suggest either using GetElementByClass as the example instead.

About the author

Picture of the article author Peter Paul Koch

Peter-Paul Koch is a freelance web developer in Amsterdam, the Netherlands. He writes and maintains, currently one of the best JavaScript resources on the Internet.

His W3C DOM Compatibility Tables, especially, have saved web developers from over the world an estimated GBP 5 million on hair implants and hair care products.

Browser vendors such as Microsoft, Opera, and Apple use these tables to solve bugs in their products.