aspose file tools
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 Head First Android this week in the Android 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: 63039

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] [Bear's FrontMan] [About Bear] [Books by Bear]
wood burning stoves
subject: Different behaviours in firefox and Explorer
jQuery in Action, 3rd edition