php - Javascript. Chrome doesnt trigger the blur() function -


$this->_editmodealertsyntax =    "onfocus=\"try{if (__iseditmode){alert('not able edit.');window.blur()}}catch(exp){}\""; 

this code works in ie , firefox, chrome doesn't work supposed. suspect chrome doesn't trigger blur() function.

are there other alternatives?


Comments