[Solved] Javascript function not working in IE [closed]


Your issue is not clear to me.If your code want to change image on focus on image then it should work with this.

<html>
    <script type="text/javascript">

        function change_img() {
            document.images.img1.src = "https://stackoverflow.com/questions/13914381/image1.jpg"; 
        }

        function change_back() { 
            document.images.img1.src = "image2.jpg"; 
        }

    </script>
    <img 
        name="img1"
        src="image2.jpg" 
        alt="gezi" 
        onMouseout="change_back()"  
        onMouseover="change_img()" />
</html>

solved Javascript function not working in IE [closed]