Bookmark to del.icio.us
Find In Page Script
Author: Alan Koontz
Note: Updated June 24th, 03'- Fixed IE related bugs when searching in a frame that has navigated to a new page. Auto scroll to found phrase (in IE).
Description: This DHTML script simulates the Edit> Find In Page feature of the browser to allow your visitors to easily search for a particular text on your page. As in the "Find In Page" feature, it highlights the searched text if found, otherwise, prompts a "Not Found" message. The script:
Demo: Type in the text you wish to locate on this page (press "Alt s" after clicking submit button to easily repeatedly search page):
Simply add the following code to your web page:
A variable contained inside allows you to specify whether the script should search current page or another frame.