EME 6930 Web Programming 1 - Assignment 1 Demo 5

Using Images as "Buttons"

One big limitation of the HTML FORM INPUT TYPE=BUTTON is that its appearance cannot be changed or formatted. Formatted "buttons" can be created using the events of the <IMG> tag. Note how the button on this page "lights up" when the mouse is over it, how it depresses when clicked, and how it triggers the DoThis() function.

CLICK THE "BUTTON" ABOVE

How to simulate IMG onClick for old browsers

Return to index page