Hide the password field in an Okta SSO authentication page

Is it possible to hide the password field in an Okta SSO authentication page and sign in through backend javacript? I want to automatically fill in the password field that will be saved in e.g. local storage with the submit button.