Need to know if this script is safe for PHP
<p>I have PHP WordPress running and I am running custom theme shop based.
I have private message system and it required to press the refresh button on Firefox to see new messages, how ever I added this script at the bottom of private message PHP file:</p>

<pre><code>&lt;script&gt;
    var refreshId = setInterval(function() {
        $('#box_content')
            .fadeOut("slow")
            .load('/?jb_action=chat_boxx&amp;oid=62')
            .fadeIn("slow");
    }, 10000);
&lt;/script&gt;
</code></pre>

<p>and this just refreshes the content grabbed from other php file in server.</p>

<p>What I want to know is, if the private message is not browsed or navigated will this code run? meaning will this script run?</p>

<p>Or will it only run when that php page is viewed?</p>