Getting selected text within iframe in IE
<p>I have iframe with id="iView" and designMode = on.</p>

<p>My code:       </p>

<pre><code> var iframeWindow = document.getElementById('iView').contentWindow.document;                                                                                            
 var range = iframeWindow.getSelection().getRangeAt(0);
</code></pre>

<p>The Error I get:</p>

<blockquote>
  <p>Microsoft JScript runtime error:
  Object doesn't support this property
  or method</p>
</blockquote>

<p>I also tried answers from<br>
   <a href="http://stackoverflow.com/questions/1471759/how-to-get-selected-text-from-iframe-with-javascript">http://stackoverflow.com/questions/1471759/how-to-get-selected-text-from-iframe-with-javascript</a></p>
