I'd like to create an link over an image in the button click. What I have so far is, when I click over the image, I get the coordinates correctly.. but how can I dinamically create an link on the mouse clicked position? Is it possible to do it?
This is what I have so far:
$('.ImgMapa').click(function(e) {
captureMousePosition(e);
var offset = $(this).offset();
var left = xMousePos;
var top = yMousePos;
});
The function captureMousePosition returns the X and Y position for me.