Tryit Editor v1.4

<html> <head> <script type="text/javascript"> function access() { document.getElementById('myName').accessKey="n"; document.getElementById('myPwd').accessKey="p"; document.getElementById('ie').accessKey="i"; document.getElementById('fx').accessKey="f"; document.getElementById('myButton').accessKey="b"; } </script> </head> <body onload="access()"> <form> Name: <input id="myName" type="text" /> <br /> Password: <input id="myPwd" type="password" /> <br /><br /> Select your favorite browser: <br /> <input type="radio" name="browser" id="ie" value="Internet Explorer">Internet Explorer<br /> <input type="radio" name="browser" id="fx" value="Firefox">Firefox <br /><br /> <input type="button" value="Click me!" id="myButton" /> </form> <p>(Use Alt + <i>accesskey</i> to give focus to the different form fields.) </p> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself