Title: executing javascript onload in wp-login.php
Last modified: August 19, 2016

---

# executing javascript onload in wp-login.php

 *  [billerby](https://wordpress.org/support/users/billerby/)
 * (@billerby)
 * [17 years ago](https://wordpress.org/support/topic/executing-javascript-onload-in-wp-loginphp/)
 * Hi!
 * Is it possible to (without modifying wp core files) have a javascript to execute
   onLoad in the wp-login.php page? Normally when I need this kind of behaviour 
   I call a function upon the admin_init or init action. However since the user 
   is not logged in in this case this seems not to be possible. Calling it with 
   login_head, does not work since its to late for onLoad behaviour. What I want
   to do in the javascript is to hide the text “Register”, without disabling the
   register function.
 * Thanks!
    /Erik

The topic ‘executing javascript onload in wp-login.php’ is closed to new replies.

## Tags

 * [action](https://wordpress.org/support/topic-tag/action/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [onload](https://wordpress.org/support/topic-tag/onload/)
 * [Ready](https://wordpress.org/support/topic-tag/ready/)

 * 0 replies
 * 1 participant
 * Last reply from: [billerby](https://wordpress.org/support/users/billerby/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/executing-javascript-onload-in-wp-loginphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
