You can't increase image size - you display fixed size images.
Things you could do:
- Have different sized copies of the same image and serve them selectively from the server when buttons pressed.
Serve a single larger image that will be auto scaled to fit dimensions of element. Then alter the size of that element in JavaScript button event handlers.
document.getElementById("myImgElement").width = 300;
document.getElementById("myImgElement").height= 300;
You need to have an image larger than what you are down scaling to. The browser will scale it automatically to fit in the smaller image element. Note that you will need an image sufficiently big to fit your maximum size. Then downscale using code above.