Here is my problem: I have a large anchor tag that links to one place, and inside this anchor I’d like a <p> tag that on click will link to different place. So I could do something like this:
function clicked()
{
window.location.href = "new link";
}
But it goes to link from the anchor. Do I need to use stoppropagation or something?
Just return false from your callback function: