html - resize button image using javascript -
i want following button (and it's image) change size when click it. dialog showing, size not changing..
<html> <input type="image" src="pacman.png" onclick=" alert('test'); this.height='200px'; // change de button size // this.image.height='200px'; // not sure if line work.. "/> </html>
need in javascript, no in css, becouse i'll make animation later..
you have manipulate "style" property:
this.style.height = '200px';
Comments
Post a Comment