js get by tag name not working
<p>i want to resize all the images inside div test but its not working here the script and html</p>

<pre><code>&lt;script type="text/javascript"&gt;
function x(){
    var  yourdiv =  document.getElementById('test');
    var  yourImg =  decoument.getElementsByTagName('img');
        yourImg.style.height = '400px';
        yourImg.style.width = '300px';
    }
&lt;/script&gt;

&lt;div  id="test"&gt;
&lt;img alt=''  src='imges/book1.jpg' /&gt;
&lt;img alt=''  src='imges/book2.jpg' /&gt;
&lt;/div&gt;
</code></pre>
