I want that when I click on the screen I take the coordinates and those coordinates are placed as a value for the margin-left. This is my javascript code.
function coordenadas(event) {
x=event.clientX;
y=event.clientY;
document.getElementById("#img").style.marginLeft=x;
alert("X: "+x+"px Y: "+y);
}