<!DOCTYPE html> <html> <input onblur=f()><button onmousedown=f1()>click</button> <script> var a=0; function f(){if(a)alert(11);else alert(444);a=0}; function f1(){a=1}; </script>