javascript - How to implement finding in UIWebView with next and Previous? -
i have been stuck on quite while. have been searching lot of time. had implemented find , highlight text using java script. had referred http://hi.baidu.com/ncudlz/blog/item/826ede354694da1f90ef3900.html link.
this helpful needed want implement next , previous button while searching when java script find first occurrence uiwebview should scrolled position. on click on next button should scroll next position , on previous if click on previous button.
so how can scroll webview when occurrence of text.
thank in advance
you can use element.scrollintoview();
method scrolls element view.
Comments
Post a Comment