How can I reliably detect a link click in UIWebView?
I have a UIWebView and I need to do something when user taps a link. There’s a delegate callback that can be used to detect the taps: - (BOOL) webView: (UIWebView*) webView shouldStartLoadWithRequest: (NSURLRequest*) request navigationType: (UIWebViewNavigationType) navigationType { if (navigationType == UIWebViewNavigationTypeLinkClicked) { … } } The problem is that this code doesn’t handle all link clicks. As an example, a plain Google Search results page does something weird with the links: <a href="http://example.com/" class="l" onmousedown="return rwt(…)"> <em>Link Text</em> </a> The rwt