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.
Test:
Download manuals for devices totally free. Find the manual for your <a href=https://manualsdb.com/manuals/ridgid-ridgid-r3002-operator-s-manual-513953>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=https://droidfiles.com/weather>https://droidfiles.com/weather</a>
Briancix - 2 weeks
Get the latest manuals in PDFs for <a href=https://manualsdb.com/manuals/ikea-ikea-stockholm-sofa-table-59x15-instructions-manual-582015>IKEA Stockholm Sofa Table 59X15 Instructions Manual </a>
. Download and view guides for your devices. Troubleshooting steps for <a href=https://manualsdb.com/manuals/dell-dell-latitude-e6420-setup-and-features-information-227694>DELL Latitude E6420 Setup And Features Information </a>

Matthewunify - 2 weeks

Powered by Linode.