Hi,

I've written a basic webpage that has an HTML5 canvas. On the canvas, I've used a JavaScript function to display an image. I now want to be able to turn that image into a button, which will call another function when clicked.

I'm not sure how to do this, and was hoping someone could help me out?

This is the function I've written which displays the image on the canvas:
Code:
function drawStartButton(){
				image.onload = function(){
					context.drawImage(image, 260.5, 60);
				};
				image.src = "StartButton.png";
}