WordPress.org

Forums

Elegant Grunge Javascript issue (1 post)

  1. cybercli
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.