<html> <head> <script type="text/javascript"> function setHeight() { var x=document.images x[0].height="250" } </script> </head> <body> <img src="images/azhar.jpg" width="107" height="98" /> <form> <input type="button" onclick="setHeight()" value="Change height of image"> </form> </body> </html>
Edit the text above, and click on the button to see the result.
Copyright © 2007-2008, Www.JavaBasics.We.Bs All rights reserved.