javascript convert enterkey to tabkey for all browsers(IE,Firefox,Opera,Google chrome)
<p>I want solution to this problem,In Asp.Net convert enterkey to tabkey for all browsers(IE,Firefox,Opera,Google chrome).give me example..</p>

<pre><code>&lt;html&gt;
&lt;script&gt; 
function enterToTab(event){
   var key = event.keyCode 
   if(key==13)
   {

    event.keyCode =9;
     return true;

   }
return false;
}

&lt;/script&gt;
&lt;body&gt;
&lt;form name='frm' &gt;
   &lt;table&gt;
   &lt;tr&gt;
      &lt;td&gt;&lt;input type = text name="A" tabindex=1 id="elem1"
onkeydown="enterToTab(event);"&gt;&lt;td&gt;
      &lt;td&gt;&lt;select type = select name="B" tabindex=3 id="elem3"
onkeydown="enterToTab(event);"&gt;

      &lt;option value = "R" selected&gt;Red
      &lt;option value = "B"&gt;Blue
      &lt;option value = "G"&gt;Green
      &lt;/select&gt;&lt;td&gt;
      &lt;td&gt;&lt;input type = text name="C" tabindex=2 id="elem2"
onkeydown="enterToTab(event);"&gt;&lt;td&gt;
      &lt;tr&gt;
      &lt;td&gt;&lt;input type = text name="D" tabindex=4 id="elem4"
onkeydown="enterToTab(event);"&gt;&lt;td&gt;

      &lt;td&gt;&lt;textarea name="E" tabindex=6 id="elem6"&gt;&lt;/textarea&gt;
      &lt;td&gt;
      &lt;td&gt;&lt;input type = text name="F" tabindex=5 id="elem5"
onkeydown="enterToTab(event);"&gt;
      &lt;input type = text name="F" tabindex=7 id="elem7"
onkeydown="enterToTab(event);"&gt;&lt;td&gt;
      &lt;tr&gt;
      &lt;table&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>thanks in advance..</p>
