Demo: 'findAndReplace'

This page is to demonstrate 'findAndReplace', a simple JavaScript function to ease the pain of finding and replacing text within an HTML document. To tryout this demo type some text in the input field below. When you press 'go' all instances of that text within the document will be highlighted.

Try typing in "text":

« Back to the blog post