Menu
hello,
i want to create script that highlights a given word in the page.
i was thinking of something like that:
[CODE]
function highlight(searchWord){
var temp=’/’+searchWord+’/g’;
newWord=”<div style=”bgcolor=#000″>”+searchWord+’div’;
document.body.innerHTML.replace(temp,newWord);
}