title: Javascript , is there a way to make the javascript disable all links except one
body: <p>I want to redirect all links on one site to another domain. Except few menu links and one image in the site.. All I could find was this code, and it just disables all links
  any ideas</p>
  
  <pre><code>function disable() {
    links=document.getElementsByTagName('A');
    for(var i=0; i&lt;links.length; i++) {
      links[i].href="javascript:return false";
    }
  }
  window.onload=disable;
  </code></pre>
  
  <p>i want to show tons of demo templates that people can download , but those templates have all sorts of links that i dont want people to surf to , so i want to put one image inside the template saying Look at more templates. and thats the only link i want enabled</p>