'height' Example : Image Img « HTML « JavaScript DHTML
- JavaScript DHTML
- HTML
- Image Img
'height' Example
<html>
<body>
<script>
function function1() {
document.all.myImage.height = "150";
}
</script>
<img id="myImage"
src="http://www.java2s.com/style/logo.png"
alt="http://www.java2s.com">
<button onclick="function1();">Change Height to 150</button>
</body>
</html>
Related examples in the same category