The focus()
method on the Window
object, when invoked, must run the focusing steps with the Window
object's browsing context. Additionally, if this browsing context is a top-level browsing context, user agents are encouraged to trigger some sort of notification to indicate to the user that the page is attempting to gain focus.
The blur()
method on the Window
object, when invoked, provides a hint to the user agent that the script believes the user probably is not currently interested in the contents of the browsing context of the Window
object on which the method was invoked, but that the contents might become interesting again in the future.
User agents are encouraged to ignore calls to this blur()
method entirely.
Historically, the focus()
and blur()
methods actually affected the system-level focus of the system widget (e.g. tab or window) that contained the browsing context, but hostile sites widely abuse this behavior to the user's detriment.
My gut is telling me that the reason the Dart Window object is missing the focus() method is the spotty browser support, but I can't find a good official explanation. Can anybody point one out, or provide a more specific answer? I was able to work around the missing functionality by using JS context in my project, I'm mostly just curious.Thanks
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.