How to change src of a frame from another page using javascript?
<p>Here i want to change the src property of my frame which has id="bodyFrame" and that is on a seperate html docement.
How can I refer it through javascript.    </p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;script&gt;
            function loadpage()
            {
                var s=document.getElementById('selection');
                //alert(s.value);
                var k=document.getElementById('bodyFrame');
                alert(k);

            }
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        Select the page to visit :
        &lt;select id="selection" onchange="loadpage()"&gt;
            &lt;option value="Home"&gt;Home&lt;/option&gt;
            &lt;option value="Staff"&gt;Staff&lt;/option&gt;
            &lt;option value="Table"&gt;Table&lt;/option&gt;
            &lt;option value="Video"&gt;Video&lt;/option&gt;
        &lt;/select&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Here I am looking for a solution instead of <code>document.getElementById('bodyFrame');</code></p>
