hi all, i want to search a text by javascript i use this code and it is run ok
in IE
function findInPage(str) { var txt, i, found; if (str == "") return false; if
(NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if
(n == 0) alert(str + " was not found on this page."); } if (IE4) { txt =
win.document.body.createTextRange(); for (i = 0; i <= n && (found =
txt.findText(str)) != false; i++) { txt.moveStart("character", 1);
txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", -1);
txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0)
{ n = 0; findInPage(str); } else alert(str + " was not found on this page."); }
} return false; }
i want to make a javascript function to search a text in the netscape. can i
update this code to work on the netscape or use another function to work on the
netscape
thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/