I want to close the window when mouse moves out of window boundary.
I have a parent window and I am creating a new child window using window.showModelessDialog
I want to close this child window (window.showModelessDialog
) when mouse moves out of the child window.
I have tried my luck with window.onMouseLeave
, window.onmouseout
but it doesn't fires up.
When I attached mouseout
with document it worked but I want to cover window boundary.
Any help on this will be very helpful