Javascript element is null
<p>I am a begginer at javascrit, and im trying to get a form result globaly</p>

<p>the radio button</p>

<pre><code>&lt;input type='radio' name='supporter' id='supporter' value='yes'&gt;
</code></pre>

<p>and the javascript on the nother page</p>

<pre><code>&lt;script type="text/javascript"&gt;
function show(){
    var supporter = document.getElementById('supporter');
    if (supporter.value == "yes") {
        alert("it works")
    }
}

show();
&lt;/script&gt;
</code></pre>

<p>and i keep getting an error, this: supporter is null</p>

<p>can please someone tell me what im missing?</p>
