Internet explorer "return false" solution

I wanted a certain link to not be followed on click. and could get it fine in ff and opera using return false in the on click but in ie it would still follow the link. I dunno
its probably common knowledge but i spent a while trying to solve it

 
//IE uses the event object so you set that to return false... 
//FF the event object does not exist so the if statement checks to make sure
 //the event object exists.    
 if("undefined" != typeof(event) )event.returnValue = false; 
    return false; 
 

just add the event line right before you return false…then it should work in ie and ff and all the browsers ive tested