Hello, i m a beginner but i need a script that could help me in some pages. I need a script that analazizes the text in the page and if there is the word that i m searching for it shows a popoup, if not does nothing. here s the code but it doesn t work with firefox because the text range function is only for IE (probably won t work either because i cant do javascript). Someone told me to use the tostrign function but i don't know how :P So if you could please change it so that it could work that would be really great.
document.body.onload = cerca();
function cerca() {
Range = document.body.createRange();
campo = toString();
var c = campo.findText("ciao");
if(c){
alert("Corrispondenza Trovata") } else {alert("nada"); }
}
thank you very much :)