var q = document.getElementById("id").getContext('2d'); var img = new Image(); img.src = '/img/qwe.png'; q.drawImage(img, (event.pageX)-(define.GameArea.offsetLeft), (event.pageY)-(define.GameArea.offsetTop));