What I'm most perplexed about is that IE got that?
On Tue, Jun 16, 2009 at 12:43 PM, Andrew Powell <powe...@gmail.com> wrote: > > Alas, _focusedElement != _focuedElement > > On Jun 16, 4:55 am, MadeOfRose <mehmetgul...@gmail.com> wrote: > > This code works on ie7, but it does not work on firefox. > > it just shows a alert when focus occur on an element. you can just > > click something on the page > > and you will see alert at ie7. > > > > var _focusedElement; > > $(document).ready(function() { > > $("*").bind("focus", function(e) { > > alert(this.id); > > _focuedElement = this; }).bind > > ("blur", function(e) { > > > > _focuedElement = null; }); > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---