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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -