[code="c"]- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
//enum {
// UIWebViewNavigationTypeLinkClicked,
// UIWebViewNavigationTypeFormSubmitted,
// UIWebViewNavigationTypeBackForward,
// UIWebViewNavigationTypeReload,
// UIWebViewNavigationTypeFormResubmitted,
// UIWebViewNavigationTypeOther
//};
//typedef NSUInteger UIWebViewNavigationType;
//判断是否是单击
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
NSURL *url = [request URL];
nsstring *curUrl= [url absoluteString];
NSLog(@"cururl...............%@",curUrl);
}
return YES;
}
禁止长按UIWebview中的连接弹出菜单
function stopCall() {
document.documentElement.style.webkitTouchCallout = "none";
}