Getting selected elements programmatically from uiwebview?
问题 Currently I am taking this sample website and showing in my webview. The webpage is displaying correctly. Now I am trying to figure out which data is selected once the user has tapped on the uiwebview. For this I am able to get the CGPoint for the tap by using UITapGestureRecognizer . -(void)singleTap:(UIGestureRecognizer *)gestureRecognizer { CGPoint touchPoint = [gestureRecognizer locationInView:myWebView]; NSString *js = [NSString stringWithFormat:@"document.elementFromPoint(%f, %f)