Simple question really. This works in all but IE6:
You want to blur the select, not the window (which acts as the global object, so this is the same as window.blur()
).
Works in all but IE6 due to a bug. You could get around it by focusing something else:
BUT! Either way, don't do this. You'll break keyboard accessibility for the select (since pressing up/down immediately sends a change event). This is the same problem that faces drop-downs abused as navigation.