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.getElement ById("editwindo w");
var r=el.createText Range();
var found = r.findText(what );
r.select();
r.scrollIntoVie w();
}
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.getElement ById("editwindo w");
var r=el.createText Range();
var found = r.findText(what );
r.select();
r.scrollIntoVie w();
}
Many thanks for any help or info -
Comment