Near the end of the wp-login.php file there is a definition of a javascript function wp_attempt_focus()
which do autofocus on on the inputs on a timeout.
I want to disable it and prevent it from firing.
Is there any possible way to do so without changing the wp-login.php
file?
I have tried adding javascript to the login_footer action hook,
setting the inputs to blur.
It removes the focus on the input but it is done after focusing on the input, which I want to prevent from happening.
Is there a way to do this without deleting the function from the wp-ogin.php file?
↧
Reuven.g on "Disable the javascript function wp_attempt_focus() in wp-login"
↧