help with error SCRIPT5007: Unable to set value of the property 'onclick'
<p>I have a link in the html page and it has the <code>id="redirect"</code></p>

<p>and this in (script.js)</p>

<pre><code>window.onload = initAll();

function initAll(){
    document.getElementById("redirect").onclick = clickHandler;
}
function clickHandler(){
    alert("Sure!");
    return true;
} 
</code></pre>

<p>I'm getting this error message </p>

<pre><code>SCRIPT5007: Unable to set value of the property 'onclick': object is null or undefined 
</code></pre>

<p>I tried this in (IE9,IE8,chrome,Firefox 4.0.1) and still not running, please help</p>
