Create a function in JavaScript and an HTML page to demonstrate the function that will allow a user to search for text within a TEXTAREA element on the page.?
The text to be searched for will be entered by the user.? The page will have a Previous button, a place to enter text to search for, and a Next button.
When the user presses the Next button, JavaScript function will run that will select the next occurance of the text within the TEXTAREA.
Similarly, when the user clicks the Previous button the previous occurance of the text will be highlighted (selected).
If the end (or beginning) of the text is reached, the function will "wrap around" to the beginning (or end).?
No alerts or other messages will ever need to be displayed.? If the pattern is not found, nothing happens.
## Deliverables
Use JavaScript and HTML and (CSS, if needed) only.
Commonly used libraries (such as Prototype) are acceptable with prior approval from the buyer.
The implementation must fit within a larger application built in ASP.NET, but there is no requirement to use ASP.NET in this small section.
The solution must work with IE 7, IE8, and latest stable versions of FireFox and Safari.