Hello all,
I am trying to steal back Windows’s “focus” without requiring the user to “click” somewhere inside the web browser window.
Let me explain :
When you are on my website, if you hover any of my scrollable areas you can use your mousewheel to scroll up and down. I like this. If for any reason you go to another window (say Word or Outlook, a window that isn’t the web browser window) and you click in there.. then obviously the focus has switched. If you then hover back to my window (because you have dual monitors and both windows were fully visible at the same time) well you can’t scroll with your mousewheel anymore (doing so will actually scroll in Word or Outlook). You have to first click inside of the browser window.
Right…
Oddly though.. the mouseover events still register even though you haven’t clicked inside the new window.. quite odd this.
I tried adding a onmouseover=’window.focus()’ on an element that spans the entire viewable area of my website. This event is indeed registered (tested with an alert) yet it doesn’t solve my problem of the user still having to CLICK inside the browser window before he can hover scrollable areas and scroll them with his mousewheel.
Any ideas why? or how I might solve this issue?
Thanks for any insight!