Thanks for your reply. I'm using IE and it does catches events into window object as "window.event". For firefox, this is not the case, we have to pass event object into the event handler function. This is very tedious job and wanted to find out a simple solution.
Your best bet is to adopt a library such as jQuery or perhaps Prototype that abstracts the browser differences away for you. Otherwise you are going to be writing a lot of new code and a whole lot of conditional statements.
So that i will be having window.event in all scopes. This has reduced a little amount of work for me. Going forward if am able to do "if(!isIE)window.event=event" in some place before going to doThis(), will make my life simpler. Any suggestions about this?
There are many more differences, for example the properties in the event instance, across the browsers. A library such as jQuery normalizes all that for you. You can continue using if's all over the place, or adopt a library. The choice is yours.