August 27, 2009

Attaching event in both MSIE and FF with Javascript

Most of the developer who working in MS platform will be used to the javascript window.attachEvent. But maybe some of you don’t know that window.attachEvent is only working on IE7+ and Opera only. Your coding will hit an javascrpit error when running at IE 6 or any version of firefox.…