Email link obfuscation, revisited: "onload" version

The test link: Email our sales department.

The code:

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

Other examples: