want to call enter key through javascript function
<p>want to call enter key through javascript function automatically:</p>

<p>eg :</p>

<pre><code>document.getElementById("sd").focus();//set focus in a text box
//then call enter key press event using java script

 var e= window.event// of type keypress
e.keyCode=13;

//and execute the manualy created event e.
</code></pre>
