document.selection.createRange() not working in chrome and safari
<p>I am using a textbox with textmode as multiline option its working fine in IE,Mozilla problem occurs in Chrome and safari. Sample code folows</p>

<pre><code>&lt;asp:TextBox ID="txtRootDescription" onpaste="DoPaste(this);" Width="600px" Rows="10" Columns="72" MaxLength="500" TextMode="MultiLine" runat="server"&gt;&lt;/asp:TextBox&gt;

function DoPaste(control) {
maxLength = control.attributes["maxlength"].value;   
if (maxLength) {        
    var oTR = control.document.selection.createRange();     
}}
</code></pre>

<p>in chrome it gives me an error as "Cannot read property 'selection' of undefined"</p>
