Title: Javascript problem in Elegant Grunge
Last modified: August 19, 2016

---

# Javascript problem in Elegant Grunge

 *  [cybercli](https://wordpress.org/support/users/cybercli/)
 * (@cybercli)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/javascript-problem-in-elegant-grunge/)
 * Well, it appears my previous post was too complicated for anyone to answer so
   I’ll try the simple version.
 * I am using a CSS popup subscribe box which uses javascript to enable it if no
   cookie is present. I have places all the code in the header.php with the javascript
   just before the </head> but after the <?php wp_head(); ?>. It uses an OnLoad 
   function in the opening body tag which calls the javascript.
 * I think the problem is with the wordpress theme and layout somewhere because 
   the same script works fine in another non-worpress website. Check out [http://www.deesact2.com](http://www.deesact2.com).
   If the message box appears it works and the problem must be on my side.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [cybercli](https://wordpress.org/support/users/cybercli/)
 * (@cybercli)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/javascript-problem-in-elegant-grunge/#post-1630263)
 * I just installed it on another wordpress theme and it works fine. The problem
   may be with the “onload” call in the body tag. This is what I have in the website
   that does not work:
    `<body onload="loadMsg('msgbox');" <?php if ( defined('EG_BODY_CLASS'))
   echo 'class="'.EG_BODY_CLASS.'"'; ?>>`

Viewing 1 replies (of 1 total)

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

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [cybercli](https://wordpress.org/support/users/cybercli/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/javascript-problem-in-elegant-grunge/#post-1630263)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
