Prev Demo
HTML5
>
Accesskey
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <form action="attributes.htm" method="post"> <p>Name: <input type="text" name="t1" id="Text1" required /></p> <p>Age: <input type="text" name="t2" id="t1" accesskey="m" /> (press alt+m to bring focus here)</p> <p><input type="submit" value="Submit" /></p> <input type="submit" value="Submit to different page" formenctype="text/plain" formmethod="get" formnovalidate formaction="MyPage.aspx" formtarget="_blank" /> </form> </body> </html>
Note: We DO NOT save your trial code in our database.
Output