Doesn't work in chrome? I could swear it used to because I have just noticed this problem. Here is what I do window.location = "http://mywebsite.com";
Works in Firefox, but not chrome? (I don't even develop for IE I just redirect because it's rage inducing, I suggest everyone do this). Please help, thanks!
No it's not working, iv'e searched on google and gone through a list of different methods that work in almost every other browser except chrome. I despise Internet Explorer, if people that use it wont come to my site I'm fine with that I would rather that actually, and IE is at it's lowest point of use atm, people are starting to notice real browsers.
firefox's event bubble is "backwards" meaning it goes from top down. In theory, firefox is the "broken" one in your scenario.
Every other browser works via bubbling upwards, and the onclick event will fire on the root element, and go up the body to the document/window.
Start looking into developing for cross browser, and issues like this will start to happen less and less. Sure, it's more work for you now and you will have a TON to catch up on. In the long run, though, maintainability, code re-use, and managing your site will become so much easier.
If you wish to insist that firefox is the end all be all of browsers, then be sure to start phrasing your questions as "I want to make my code work in firefox" and stop worrying about Chrome or Safari or any other webkit, IE, or Konquerer based browsers, as they will ultimately all be different and have something different about them.
The solution by Jorge is the best anyone has given to make your issue non-existent across all browsers. You are asking for the value of a select after it has been changed. That is a change event (onchange). However, it may fail in IE since IE requires a blur() event, in some cases, for a change to be considered "complete" and the event fired.