my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes No window.event in firefox ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "No window.event in firefox ?" Watch "No window.event in firefox ?" New topic

No window.event in firefox ?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 348
I got this javascript works fine in Opera and IE, but not in firefox, there is no window.event, do anyone knows why ???

window.event.keyCode is 13 in IE and Opera, but the window.event dont exist in firefox why, and what kan i do, i have to check on enter in a input field ???

[ August 23, 2005: Message edited by: Bear Bibeault ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Here is how you would make it cross-browser friendly with a basic example:

shareef hiasat

Joined: Jul 15, 2011
Posts: 8
Thank you its just what i needed
It is sorta covered in the JavaRanch Style Guide.
subject: No window.event in firefox ?
Similar Threads
ALT Key Combination help.
Replace keycode value in Firefox
How can I limit the entry of textbox in javascript?
Opera submits form on enter Explorer dont ?
IE vs FF window.event issue