开发者

Iframe issue in Google Chrome

开发者 https://www.devze.com 2023-01-19 18:45 出处:网络
I am creating a dynamic iframe. In order to listen for \'blur\' even on iframe I have made it work in FF and IE using iframe\'s contentWindow.document and iframe respectively. But this does not work i

I am creating a dynamic iframe. In order to listen for 'blur' even on iframe I have made it work in FF and IE using iframe's contentWindow.document and iframe respectively. But this does not work in Google Chrome (May be not work in other webkit browsers). My question is I am looking for an event which can call my handler anytime user loses focu开发者_开发知识库s(Leaves Iframe) from Iframe window. I don't have to access any content in iframe so question of security does not arise. Just an event to trigger whenever I lose focus from iframe and select any other control on web page.


According to quirksmode "Safari and Chrome don’t support [blur] on links and/or form fields in all circumstances."

You might have one of those circumstances where it's not supported.

if you're curious, follow the link and click on "blur" to read more about it.

0

精彩评论

暂无评论...
验证码 换一张
取 消