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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -