What I simply need to do is on the onblur event OF a page, I need to change the location of the page. I can simply do this, cross-compatible with
if (typeof window.attachEvent != 'undefined') {
// this works for IE
window.attachEvent('onblur', doit);
} else if (typeof window.addEventListener != 'undefined') {
// this works for firefox
window.addEventListener('blur', doit, false);
}
However, when I use THIS page in an IFrame on another page, it doesn't seem to work with IE.. All other browsers seem to function properly, but IE doesn't call the onblur function at the event of a new page opening when a hyperlink is clicked. I don't know how to solve it.
Warm Regards,
if (typeof window.attachEvent != 'undefined') {
// this works for IE
window.attachEvent('onblur', doit);
} else if (typeof window.addEventListener != 'undefined') {
// this works for firefox
window.addEventListener('blur', doit, false);
}
However, when I use THIS page in an IFrame on another page, it doesn't seem to work with IE.. All other browsers seem to function properly, but IE doesn't call the onblur function at the event of a new page opening when a hyperlink is clicked. I don't know how to solve it.
Warm Regards,
