myEventFunction(thisEvent)
function myEventFunction(e) { alert("raised event: "+event); }
var e = dojo.fixEvent(thisEvent); // now do something with the new event object stored in 'e'
e = dojo.fixEvent(thisEvent); if (e.keyCode == dojo.keys.ENTER) doSomething();
I am trying to get the event object in my onKeyDown event to do phone number validating and it's not working:
event is not a reserved object.. help!
I just found that the event object is not present in all browsers. You can use "thisEvent" instead.