How to detect which iframe is active

A

Arena

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
 
R

Randy Webb

Arena said:
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.
 
A

Arena

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top