Javascript Resize all Images
===

im trying to resize all images on a page. After googleing 1 day, I ended in the following code:


    <script type="text/javascript">
    <!--
    window.onresize = function(){
    var images = document.images;
    images.style.width = "100%";
    };


    -->
    </script>

Could someone tell me please, why this wont work? :/

Greets SG