col = document.getElementsByTagName('a'); for( var i in col ){ el = col[i]; el.href = ''; }