Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6117081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:16:47+00:00 2026-05-23T15:16:47+00:00

I want solution to this problem,In Asp.Net convert enterkey to tabkey for all browsers(IE,Firefox,Opera,Google

  • 0

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

<html>
<script> 
function enterToTab(event){
   var key = event.keyCode 
   if(key==13)
   {

    event.keyCode =9;
     return true;

   }
return false;
}

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

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

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

thanks in advance..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:16:47+00:00Added an answer on May 23, 2026 at 3:16 pm

    event.keyCode is writeable only in MSIE, so you can’t simply “convert” this function to make it work cross-browser.

    You‘ll need a more complex script that parses the document to build a stack of elements affected by tab-inputs(those having a tabIndex-property >0) and give them the focus accordingly to the current element.

    What else: for me the TAB has keyCode 9

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are looking into a solution for this problem: We host a ASP.NET web
The basic layout of my problem is this: Website (ASP.NET/C#) hosted at a dedicated
can any one send me solution on this problem . Here i want to
This is a Project Euler problem. If you don't want to see candidate solutions
This is my first usage of jQuery. I just want a quick solution for
I'm considering using this jquery utility as a possible solution, but I want to
Is this possible? I have a solution with both projects, I just want to
I'm building an ASP.NET MVC site where I want one of the Views I
We're migrating one of our sites to ASP.Net. We do not want to use
I have repeatedly run in to a problem when creating ASP.NET MVC 3 controllers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.