Title: [Plugin: Theme My Login] Causing Javascript Error
Last modified: August 20, 2016

---

# [Plugin: Theme My Login] Causing Javascript Error

 *  [randomwalk](https://wordpress.org/support/users/randomwalk/)
 * (@randomwalk)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-them-my-login-causing-javascript-error/)
 * When I have Theme My Login activated I get a d is null error unless I am on the
   actual login page. How do I get it to not call this function on every page?
 * <script type=”text/javascript”>
    function wp_attempt_focus() { setTimeout( function(){
   try { d = document.getElementById(‘user_login’); d.value = ”; *********PROBLEM
   LINE ********* d.focus(); } catch(e){} }, 200 ); } wp_attempt_focus(); if(typeof
   wpOnload==’function’)wpOnload() </script>

The topic ‘[Plugin: Theme My Login] Causing Javascript Error’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [randomwalk](https://wordpress.org/support/users/randomwalk/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-them-my-login-causing-javascript-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
