Javascript Reference
Categories: tips

javascript move to next input when ENTER key is pressed

@May 11, 2009, 5:25 a.m.
<input onkeydown="if(event.keyCode==13)event.keyCode=9" name="txt1" />
<input onkeydown="if(event.keyCode==13)event.keyCode=9" name="txt2" />

keyCode = 13 is ENTER pressed event
keyCode = 9 is TAB key

Unfortunately, this is IE only. For firefox, it raises the error 'setting a property that has only a getter', beacuase of read-only property of keyCode.
Download manuals for devices totally free. Find the manual for your <a href=>RIDGID R3002 Operator S Manual </a>
device here
DonnieVen - 2 weeks
Let’s take a look at its solution and how you can make this app work properly. Have in mind that some apps and games may not be available in Google Play for your country of residence. With just one click you can check the weather for today, tomorrow, and the next 5 days. Local weather forecast & real-time rain, storm, ice & snow reports. If you’re looking for another weather app unafraid to show its personality, consider What the Forecast. Its new interface may be complex, but AccuWeather has seen major improvements thanks to a recent revision. <a href=></a>
Briancix - 2 weeks
Get the latest manuals in PDFs for <a href=>IKEA Stockholm Sofa Table 59X15 Instructions Manual </a>
. Download and view guides for your devices. Troubleshooting steps for <a href=>DELL Latitude E6420 Setup And Features Information </a>

Matthewunify - 2 weeks

Powered by Linode.