How to set javascript variable to null before pageload
<p>There is some code I would like to set to NULL before a page has loaded possible turning this into a chrome extension or grease monkey script. Here is the code in question:</p>

<pre><code>if (/*@cc_on!@*/false) {
            document.onfocusin = onFocus;
            document.onfocusout = onBlur;
        } else {
            window.onload = window.onfocus = onFocus;
            window.onblur = onBlur;
        }
    }

    function onBlur() {
        var vidnowApp = document.getElementById("vidnow");
        if (vidnowApp &amp;&amp; vidnowApp.onAppDeactivate) {
            vidnowApp.onAppDeactivate();
        }
    }

    function onFocus() {
        var vidnowApp = document.getElementById("vidnow");
        if (vidnowApp &amp;&amp; vidnowApp.onAppActivate) {
            vidnowApp.onAppActivate();
        }
    }
</code></pre>

<p>What is the best solution to set onBlur to null so that onFocus is always set?</p>
