By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,775 Members | 1,306 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,775 IT Pros & Developers. It's quick & easy.

How to detect which iframe is active

P: n/a
Hi!

Having multiple iframe wysiwyg editor I would to use only one shared
toolbar. Can anybody help me, how to detect where is focus.

Thank You,
Arcady Voronin
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Arena wrote:
Hi!

Having multiple iframe wysiwyg editor I would to use only one shared
toolbar. Can anybody help me, how to detect where is focus.


Have a global variable named hasFocus and onFocus of each IFrame, change
that variables value. Then when you need to know which has focus then
you check it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2

P: n/a
> Have a global variable named hasFocus and onFocus of each IFrame, change
that variables value. Then when you need to know which has focus then
you check it.


Yes, thank You, its works fine in Internet Explorer, but not in Mozilla.
Seems to me, that focus event on Mozilla is not occurred, when designmode is
on.
Of course, I can set designmode on AFTER focus is detected, but maybe
somebody knows the better workaround.

Arcady Voronin
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.