I think that a more acceptable (by which I mean, acceptable by the community at large) form of your question would be something like this (and please excuse me, I know little about web programming):
I'm updating a system that worked with IE8 to be compatible with IE11. I rely on window.onfocus
for certain tasks. I've done some investigation and narrowed it down to the following: In IE11, window.onfocus
does not always seem to be called, which is breaking code that worked with IE8.
My main requirement is to <insert goal e.g. always floogle the clumberputts when the window is brought into focus>, but I cannot seem to do this reliably in IE11.
I have created a minimal, self-contained demonstration here: <insert bare minimal code to demonstrate issue, perhaps a jsfiddle link>. If you run this with IE8, you can see that it works correctly. If you run it with IE11, you can consistently reproduce the problem like so:
- Remove your left shoe.
- Click the button on the right.
- Quack like a duck.
I looked around for some other reports of similar behavior and found <insert link>, I tried the techniques there but the issue persisted [alternatively: I found nothing at all].
Why is IE11 not calling window.onfocus
, and what can I use as a replacement?
The key points there being to clearly state what you're looking for, narrow down your specific problem to a short, self-contained example, describe what you've attempted so far, and ask the question in a manner that could also help other people who are struggling with the same thing (window.onfocus
in IE11 vs IE8) but in other contexts.
window.onfocus
that worked in IE8? – rene Nov 13 '14 at 16:55