HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Press 'Tab' key to navigate through input.</p> <p>Name</p> <input type="text" value="John"> <p>Age</p> <input type="text" value="45" autofocus> <p>Gender</p> <input type="text" value="Male"> <script> document.getElementsByTagName("input")[0].tabIndex = "2"; document.getElementsByTagName("input")[1].tabIndex = "1"; document.getElementsByTagName("input")[2].tabIndex = "3"; </script> </body> </html>
OUTPUT
×

Save as Private