Use DOM to focus from Idan Sofer

git-svn-id: http://svn.automattic.com/wordpress/trunk@1445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-06-22 23:33:05 +00:00
parent eedeb9dea1
commit c5841b82a4

View File

@ -165,7 +165,7 @@ case 'lostpassword':
<script type="text/javascript">
function focusit() {
// focus on first input field
document.lostpass.user_login.focus();
document.getElementById('user_login').focus();
}
window.onload = focusit;
</script>
@ -270,7 +270,7 @@ default:
<script type="text/javascript">
function focusit() {
// focus on first input field
document.loginform.log.focus();
document.getElementById('log').focus();
}
window.onload = focusit;
</script>