Email link obfuscation, revisited: "onclick" version

The test link: Email our sales department.

The code:

window.onload = function (){
   var addressCleaner = function (){
      this.href = this.href.split("?")[0].replace("notspam", "");
      this.onclick = function (){};
      this.oncontextmenu = function (){};
   };
   var links = document.getElementsByTagName("a");
   for (var i=0; i < links.length; i++){
      if(links[i].href.indexOf("mailto:") !== -1){
         links[i].onclick = addressCleaner;
		 links[i].oncontextmenu = addressCleaner;
      }
   }
};

Other examples: