4 ms·
Shouldn't "time on site" implement a pause timer function if blur() ?
by est 16y ago
Shouldn't "time on site" implement a pause timer function if blur() ?
- chime 16y agoI'm not sure that blur is fired if you switch tabs.
- jiaaro 16y agoit 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>
- goodside 16y agoIt should. I was referring to Google Analytics in particular, which was the source of this data, and GA's calculation doesn't use blur tracking as far as I can tell.