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 Different behaviours in firefox and Explorer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Different behaviours in firefox and Explorer" Watch "Different behaviours in firefox and Explorer" New topic

Different behaviours in firefox and Explorer

Kevin manoj
Ranch Hand

Joined: Jul 19, 2002
Posts: 36
I have a drop box on the page. When user select an option, I add a "onclick" event handler to redirect the user to different pages. It works okay for firefox. But It does not work for IE.

Is there anyone who encounter the same problem as me? How do you solve it?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
what is a drop down box? A select element?

If you are talking about a select element, you should be using onchange or onblur.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Event handling across browsers is a royal pain in the neck because of IE's insistance of doing things in non-standard ways.

Be aware that the event handling models will be significantly different between IE and the standards-compliant browsers.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Different behaviours in firefox and Explorer
It's not a secret anymore!