File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 358
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: 15385
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
I agree. Here's the link:
subject: No window.event in firefox ?
It's not a secret anymore!