How to detect which iframe is active

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arena

    #1

    How to detect which iframe is active

    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


  • Randy Webb

    #2
    Re: How to detect which iframe is active

    Arena wrote:[color=blue]
    > Hi!
    >
    > Having multiple iframe wysiwyg editor I would to use only one shared
    > toolbar. Can anybody help me, how to detect where is focus.[/color]

    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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

    Comment

    • Arena

      #3
      Re: How to detect which iframe is active

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

      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


      Comment

      Working...