title: how to change focus out of IFrame
body: <p>I have an IFrame with some buttons in it.  When the buttons are clicked, the parent DOM is manipulated (it's all in the same domain, so don't worry about the same-origin policy).</p>
  
  <p>Since the user clicked on a button, the focus goes to the IFrame.  However, I'd like to move the focus back to the parent document (mostly due to <a href="https://stackoverflow.com/questions/10501381/selection-changes-color-when-firefox-loses-focus">this FireFox problem</a>).</p>
  
  <p>How can I do this?</p>
  
  <p><strong>Edit:</strong> I've created a <a href="http://jsfiddle.net/paleozogt/emDLZ/" rel="nofollow noreferrer">js-fiddle</a> that shows the problem.  While <code>focus()</code> seems to work if you call it on parent form elements, it doesn't work in general.  As you can see from the js-fiddle there are no form elements in my parent document.</p>