autologin when login form is filled

Hi I would like to know if it is possible to edit the mobile-login.html page in some way that would submit the form (perform the same action as clicking the submit button) if the user has previously saved his/her login credentials to autocomplete in the browser. The goal is to not have to click the submit button to log in on the login page if the user credentials are autocompleted by the browser. Any help would be much appreciated :)
1 answers

Adding some javascript to the mobile-login.html page might do the trick.

See for some inspiration: