If you need to replace text within an element you can do this:
In your case the first arg would 'Company Name HEre' , followed by its replacement, followed by 'a'
Code:
function replace(oldTxt, newTxt, tag){
var i, len, link = document.getElementsByTagName(tag);
len = link.length;
for(i = 0; i < len; i++){
if(link[i].innerHTML === oldTxt){
link[i].innerHTML = newTxt;
break;
}
}
}
If you want to completely remove the element you can do this:
Code:
function remove(text, tag){
var i, len, link = document.getElementsByTagName(tag);
len = link.length;
for(i = 0; i < len; i++){
if(link[i].innerHTML === text){
link[i].parentNode.removeChild(link[i]);
break;
}
}
}
As long as you can identify the element you can change the text it contains.
Bookmarks