FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Problem with onblur event in iframes with IE.

 


toughtrio
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,
escritor
Change location onblur? I can't think of a good use for it... What's your aim? Smile
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.