<html> <body> <img id="myImg" src="http://www.java2java.com/style/logo.png" width="132"> <br> <input type="button" value="Shrink image" onclick="myImg.style.width='65'"> <input type="button" value="Restore image" onclick="myImg.style.width='132'"> </body> </html>