Home > Javascript blur problem

Javascript blur problem

April 4th, 2007

Today, I had a problem doing this:


<input type='text' readonly onFocus="alert('manatee');this.blur();" />

The problem was it would go into an infinite alert loop. That’s not cool. The fix was to reverse the calls:


<input type='text' readonly onFocus="this.blur();alert('manatee');" />


, , ,

Comments are closed.