Hello,
i want to close a popup-window with the onBlur eventHandler.
function closeIt() {
setTimeout('win dow.close()',20 00); }
<body onBlur="closeIt ()">
html
</body>
Problem:
There is a form on my page, and when a input-field gets focus, body looses
focus and the window closes.
That's not what i want. I want to close the window, if focus goes to another
window or application, but not when someone tries to fill that form.
Any idea for me?
Thanks a lot,
Martin Nadoll
i want to close a popup-window with the onBlur eventHandler.
function closeIt() {
setTimeout('win dow.close()',20 00); }
<body onBlur="closeIt ()">
html
</body>
Problem:
There is a form on my page, and when a input-field gets focus, body looses
focus and the window closes.
That's not what i want. I want to close the window, if focus goes to another
window or application, but not when someone tries to fill that form.
Any idea for me?
Thanks a lot,
Martin Nadoll
Comment