It runs on window load so by then I've already filled out the username and am halfway through my password before it flicks the cursor back to the username field.
This point would be moot if it automatically logged me in each time but it never remembers to.
The function is:
Code: Select all
onload_functions.push('document.getElementById("username").focus();');
Code: Select all
function someFunction(){
var elemUsername = document.getElementById("username");
if(elemUsername.value === ''){
elemUsername.focus();
}
}
onload_functions.push(someFunction);
Code: Select all
onload_functions.push('var elemUsername = document.getElementById("username"); if(elemUsername.value === "")elemUsername.focus();')