GeeCON Prague 2014*
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


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Different behaviours in firefox and Explorer" Watch "Different behaviours in firefox and Explorer" New topic
Author

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?

Thanks
Eric Pascarello
author
Rancher

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

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

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61309
    
  66

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]
 
GeeCON Prague 2014
 
subject: Different behaviours in firefox and Explorer