how to validate clipboard data in onpaste method?
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;&lt;script type="text/javascript"&gt;
function onPaste(eve) {
    try {
        var txt = e.clipboardData.getData('text/plain');
        alert(txt);
    } catch (err) {
    }
} &lt;/script&gt; &lt;/head&gt;&lt;body&gt;
&lt;textarea cols=60 name="inputUsaaNum" onpaste="onpaste(event);"&gt;&lt;/textarea&gt;&lt;/body&gt;&lt;/html&gt;
</code></pre>

<p>please help to validate the clipboard data from text area, i need to identify the whaether it has any spacial character and also i want to delimit the values with help of carriage return('\r'), please help????</p>
