Forum Moderators: open
targetWord= "word";
r=document.body.createTextRange();
for(i=0;r.findText(targetWord);i++){
r.execCommand('BackColor','','yellow');
r.collapse(false)
}
Has anyone any ideas, on how to make the window scroll to the first instance of the target word.
I think it can be possible but can't think of how to link in the method
window.scrollTo(x,y)
Thanks in advance for any ideas
-M