It is possible:
Set a location for something with your own schema in the url i.e.
document.location.href = "myscheme: // DoSomething"
UIWebViewDelegate shouldStartLoadWithRequest: NSURLRequest, "myscheme". , DoSomething, DoSomething, superView.
( UIWebView dealloc, , , stopLoading)