Return false to link not working

I’m pretty new to js, but i’ve searched this issue and it seems simple but it’s not making sense. I’m trying to make the link dead

I have this within a div of my html

<a href=“poop.html” id=“home”><img src=“images/Home_off.gif” width=“84” height=“40” id=“home” alt=“home” /></a>

and I have this in my .js file

document.getElementById(“home”).onclick = changeMov;

function changeMov() {
return false;
}

i tried variations like:

<a href=“poop.html” id=“home”><img src=“images/Home_off.gif” onclick=“return false”; width=“84” height=“40” id=“home” alt=“home” /></a>

but still won’t work, any help would be greatly appreciated

The first one doesn’t work because you have duplicate identifiers. The home id needs to be on the link, not the image.

The The second one doesn’t work because the onclick event should be on the link.

got it thanks