J
jason
Hello.
I've got this js function I call from an html input button. It finds
the occurance of a string in a textbox, selects it and scrolls into
view.
JS newbie question, considering it's a function called from a buttons'
onlclick=, how can I change this code to search the textbox from the
cursor on to the end?
function searchtxt(n){
var what=n;
var d=document;
var el=d.getElementById("editwindow");
var r=el.createTextRange();
var found = r.findText(what);
r.select();
r.scrollIntoView();
}
Many thanks for any help or info -
I've got this js function I call from an html input button. It finds
the occurance of a string in a textbox, selects it and scrolls into
view.
JS newbie question, considering it's a function called from a buttons'
onlclick=, how can I change this code to search the textbox from the
cursor on to the end?
function searchtxt(n){
var what=n;
var d=document;
var el=d.getElementById("editwindow");
var r=el.createTextRange();
var found = r.findText(what);
r.select();
r.scrollIntoView();
}
Many thanks for any help or info -