Hi,
I'm having a javascript calling two functions when the focus and blur event occur. These are set like this:
window.onfocus = setFocusOn;
window.onblur = setFocusOff;
My script is in a .js file and I refer to it via the <script src="functions.js"> tag.
My problem is that if I am on the page and then go on MSN messenger per example, the focus is lost, which is ok. Then, if I click on the task bar to get back on the page, the focus is gained. But if I click inside the web page, on the document, the focus is gained and lost just after that! I'm still on the we page and the focus is gone somewhere I don't know...!
It works fine on NS 7. If I click on the web page, the focus is gained. But in IE, the focus is gained and then lost just after every click I do in the page...
Any idea of what's going on??
Thanks
Stephane
I'm having a javascript calling two functions when the focus and blur event occur. These are set like this:
window.onfocus = setFocusOn;
window.onblur = setFocusOff;
My script is in a .js file and I refer to it via the <script src="functions.js"> tag.
My problem is that if I am on the page and then go on MSN messenger per example, the focus is lost, which is ok. Then, if I click on the task bar to get back on the page, the focus is gained. But if I click inside the web page, on the document, the focus is gained and lost just after that! I'm still on the we page and the focus is gone somewhere I don't know...!
It works fine on NS 7. If I click on the web page, the focus is gained. But in IE, the focus is gained and then lost just after every click I do in the page...
Any idea of what's going on??
Thanks
Stephane