Faltu Funda| 30 Mar 2008 | |||||
|---|---|---|---|---|---|
|
practice interviews and prepare for interviews in todays changing world every one want to increase there salaries very quickly. Changes your employer is an very efficient solution for this. But changing employer and company is not so easy. cont.. |
||||
| 12 Feb 2008 | |||||||
|---|---|---|---|---|---|---|---|
|
Getting event object in inline onclick event Yesterday i need to get event object for onclick event and onclick event was written inline. After investing an hour i got methods for that. I'm writing here for all, who needs that. <div onclick="javascript:sayMe(event);return false;">click me</a> to get event object for inline events you have to pass <event> as an argument of the callback function for mozilla browswer and for ie event will be available as window.event so to make your function cross browser compatible you can add following code in your function function xyz(e){ var e = e ? e : window.event; // now here e is the event object } i'll continue with javascript events in my next posts bye |
||||||
|
|||||||||
1