होवर पर HTML5 कैनवास आयत को अद्यतन करने के लिए, निम्न कोड चलाने का प्रयास करें:
var canvas = document.getElementById("myCanvas");
var context = canvas.getContext("2d");
context.rect(20,20,150,100);
context.stroke();
$(canvas).hover(function(e){
context.fillStyle = blue;
context.fill();
});