What would be the most rational, cross-browser compatible way to create an element which has a shape of a circle? This element will be invisible, but clickable = it will be over a background which already has the image on it, so I just need to create an invisible, imaginary element to make the background circle clickable.
The element doesn't need to be <a>
tag, as the click events will be bound using jquery only and don't need to send any href
to the browser. Therefore a div
will do. The question is: how to accomplish the rest?
EDIT
Actually, I need to change the url with each click, but not to refresh the page, but to have the url available for users to copy. Therefore if I can bind the div
tag with jquery to change the url from base#home to base#contact, then all is OK.
EDIT2
I don't need the jquery code, I just need the html/css part to create the elements.