I already tried getting the current URL of my UIWebView with: webview.request.URL. Unfortunately the NSURL was empty. Anything wrong h
UIWebView
webview.request.URL
NSURL
window.location via JS didn't work reliably for me, but this did:
currentURL = currentWebView.request.URL.absoluteString;
Credit: http://mohrt.blogspot.com/2008/10/getting-url-from-uiwebview.html