4 ms·
it is
by jiaaro 16y ago
it is
- chime 16y agoIt is indeed. I tested it out by opening this in multiple tabs and switching back and forth: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> </head> <body> <textarea id="sd1"></textarea><br /> <textarea id="sd2" rows="20"></textarea> <script> $("#sd1").focus(); $(function() { $("#sd1").blur(function() { $("#sd2").val($("#sd2").val() + "\nblur!"); }); $("#sd1").focus(function() { $("#sd2").val($("#sd2").val() + "\nfocus!"); }); }); </script> </body></html>