Title: Elegant Grunge Javascript issue
Last modified: August 19, 2016

---

# Elegant Grunge Javascript issue

 *  [cybercli](https://wordpress.org/support/users/cybercli/)
 * (@cybercli)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/elegant-grunge-javascript-issue/)
 * Can someone please tell me if there is anything wrong with this opening body 
   tag. I’m trying to call a javascript function located just before the </head>.
   This is the original:
    `<body <?php if ( defined('EG_BODY_CLASS') ) echo 'class
   ="'.EG_BODY_CLASS.'"'; ?>>` I just added the onload= here: `<body onload="loadMsg('
   msgbox');" <?php if ( defined('EG_BODY_CLASS') ) echo 'class="'.EG_BODY_CLASS.'"';?
   >>` It works fine in other themes. Thanks

The topic ‘Elegant Grunge Javascript issue’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [cybercli](https://wordpress.org/support/users/cybercli/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/elegant-grunge-javascript-issue/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
