I have a module inside my iOS 7+ app which is a UIWebView. The html page loads a javascript that creates custom-shaped buttons (using the Raphaeljs library). With UIWebView,
To answer the original question, the equivalent of webView:shouldStartLoadWithRequest:navigationType:
in UIWebView is webView:decidePolicyForNavigationAction:decisionHandler:
in WKWebView. These methods are called before each request is made (including the initial request) and provide the ability to allow/disallow it.