<script type="text/javascript">
var email=document.getElementById('email').tabIndex;
var pwd=document.getElementById('pwd').tabIndex;
document.write("Tab index of email field: " + email);
document.write("<br />");
document.write("Tab index of password field: " + pwd);
Email: <input type="text" id="email" tabindex="1" />
Password: <input type="password" id="pwd" tabindex="2" />
<input type="button" onclick="showTabIndex()" value="Show tabIndex" />