At first, as mentioned above, I'm not sure why you would not enable it by default. But here is what you need to do. When the page loads, just check to see if there is anything in the fields. Sometimes the browser enters login information when the fields have focus, but I assume that if it has focus, your script may detect the input.
window.onload=function(){ var txt=document.getElementById('username'); if(txt!==''){showSubmit();}
qw3n
source share