On the page, I have an Iframe that contains the input fields, and if I select one of these fields in FireFox and use it document.activeElement, I get an IFrame. This is normal, I just use this IFrame and get its contentDocument, save it, and then activate ActiveElement again, and now I get the input window.
However, in Chrome and Safari, when I select one of the fields inside the IFrame and do document.activeElement, I get a body element. If I select an item outside of the IFrame, it document.activeElementworks fine.
How can I get the active element in my case?
source
share