Window autofocus using javascript

388 views Asked by At

Is it possible to transfer focus to a window automatically when you mouse over it using javascript?

I have a web based application that uses multiple windows so that users can rearrange the interface how they want, but at the moment they must click on a window to transfer focus before they can use it. So to make things a little easier for my users I would like to make it so that focus is automatically transferred to a window when the mouse moves over it.

I have tried using javascript's mouseover() function and jquery's mouseEnter() functions and I get some whirred behaviour where it will fire a hover event on an object at the edge of the window, but it does not focus the window properly.

Thanks in advance for any help!

0

There are 0 answers