title: Getting the active or focused element Id in a web page
body: <p>Lets say there are two iframes on my webpage and one toolbar for operations like make the text bold, underline, italic etc. The iframe is set to DesignMode so that user can input text and use it as a text editor. Im trying to use a single toolbar for the iframes....so is there a way that i can knw which iframe did the user edit so that the operation(bold, italic etc) can be applied to that iframe Id? </p>
  
  <p>the algorithm that comes to my mind is that get the active element id first and then apply the operation, but i dont knw the syntax for doing it!! </p>
  
  <p>Thanks!!</p>