...

View Full Version : event is undefined



gani
01-26-2009, 03:25 PM
I cant figure this one out

i have this code working great in firefox


alert(e)

in explorer it alerts "undefined"

i tried


alert(event)

but still i get undefined

but in firefox it alerts [object MouseEvent] as it should

whats the solution :confused: whats wrong with my explorer

abduraooft
01-26-2009, 03:51 PM
try

if(!e) e=window.event;
alert(e);

Philip M
01-26-2009, 03:57 PM
See:-

http://www.quirksmode.org/js/events_properties.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum