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:
MEET HOT LOCAL GIRLS TONIGHT WE GUARANTEE FREE SEX DATING IN YOUR CITY CLICK THE LINK:
<a href="https://about.me/alexa.smith">FREE SEX</a>
PatrickVat - 1 years
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 - 1 years
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 - 1 years

Powered by Linode.