How to get Event object of Firefox

  1. function getEvent() {
  2.  if (window.event) return window.event;
  3.  else return getEvent.caller.arguments[0];
  4. }
  5.  
  6. function showMessage(){
  7. var e = getEvent();
  8.  
  9. // you can use this e object
  10. }

,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth