Here's the screecast: http://screencast.com/t/UtSsSCtdX As you see, if you activate another window, onBlur event gets called, but if you activate another tab in the same window, onBlur event isn't called. Firefox works perfectly in that sense. You can confirm it in the screencast: http://screencast.com/t/xTkKUZhI1Xn The following HTML is the test code used here. <html> <head> <title>test</title> <script type="text/javascript"> function onBodyFocus() { document.title = 'onBodyFocus'; } function onBodyBlur() { document.title = 'onBodyBlur'; } </script> </head> <body onBlur="onBodyBlur()" onFocus="onBodyFocus()"> </body> </html>
Hi, This bug is also present in Safari 3.2.1 with Mac OS X 10.5.5 when tabbing using trigger window.onblur The following HTML is the test code used here. <html> <head> <title>test</title> <script type="text/javascript"> window.onblur = onBodyBlur; window.onfocus = onBodyFocus; function onBodyFocus() { document.title = 'onBodyFocus'; } function onBodyBlur() { document.title = 'onBodyBlur'; } </script> </head> <body> </body> </html>
The status of this ticket has been unconfirmed for 7 months. Is there any way to change the status to new / assigned?
*** Bug 24219 has been marked as a duplicate of this bug. ***
<rdar://problem/6629580>