Sure ...
These are my two JavaScript functions that I'm using:
function goto(astr)
{
var NS4 = (document.layers);
var IE4 = (document.all);
var win = this;
var n = 0;
str = astr;
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();
progress.prate.focus();
progress.prate.select();
txt.scrollIntoView();
n++;
//search.string.focus();
//search.string.value = str;
}
else {
if (n > 0) {
n = 0;
findInPage(str);
}
}
}
return false;
}
<!-- Original: Mike Hall (MHall75819@aol.com) -->
<!-- Web Site:
-->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!
-->
<!-- Begin
var NS4 = (document.layers);
var IE4 = (document.all);
var win = this;
var n = 0;
function findInPage()
{
str = search.string.value;
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();
//document.all.str.scrollIntoView();
txt.scrollIntoView();
n++;
//search.string.focus();
//search.string.value = str;
}
else {
if (n > 0) {
n = 0;
findInPage(str);
}
else
alert(str + " was not found on this page."

;
}
}
return false;
}
// End -->
***************************************************
myTest.cfm contains a DIV that has a list of hyperlinked codes (the links link back to myTest.cfm). When the user clicks on a code, that code is passed as a URL variable, and the page (myTest.cfm) is refreshed. The JS function goto() is called during <body onload()> and it takes that URL variable as its one parameter. The functions find that code (the URL var) in the DIV, and jump to that position in the DIV.
I want to know if there's a way to have the found code be at the top of the DIV (not the top of the list, just the top of the viewable part of the DIV)
Thank you!