通过单击使用HTML的按钮在浏览器中显示图像的代码

问题描述:


我想知道通过单击使用HTML的按钮在浏览器中显示图像的代码.

谢谢

Hi,
I would like to know the code for displaying an image in the browser by clicking a button using HTML.

Thanks

请先共享您的代码..我想您想要这样:

Please share the your code firstly .. I guess you want like this :

<head><title>Image Display Test
    </title>
    <script type="text/javascript">
    function showImage(){
        document.getElementById('loadingImage').style.visibility="visible";
    }
    </script>
    </head>
<body>
    <input type="button" value="Image Button" onclick="showImage();"/>
    <img id="loadingImage" src="uorimagename.gif" style="visibility:hidden"/>

</body>




谢谢,
Ambesha




Thanks,
Ambesha