How to start a text search from the current scroll position in a web page using window.find()
?
There is a floating, 'scroll free' div in a webpage with a search input text box, next and prev buttons. If we scroll down and start a text search, the web page scrolls up to the top of the page and starts the search from the top. But the requirement is to start the search from the current scroll position.
The search is done by using window.find()
and it's working, but the only problem is that it always starts from the top instead of from the current scroll position.
Please help.