Answer the question
In order to leave comments, you need to log in
Why does this code not resize the image?
The JavaScript book has this example:
<head>
<script>
function resizeRock() {
document.getElementById('rockimg').style.height =
(document.body.clientHeight - 100) * 0.9;
}
</script>
</head>
<body onload="resizeRock()">
<img id="rockimg" src="pegoet.png">
</body>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question