Here is an interesting jsfiddle.
In Firefox:
Skip 2nd blur:
var secondBlur = false; this.onblur = function(){ if(secondBlur)return; secondBlur = true; //do whatever } this.onfocus = function(){ secondBlur = false; //do whatever }