title: Handling Window.close in JavaScript through UIWebView - Obj C
body: <p>I recently started working on a IOS project that runs mainly on a <code>UIWebView</code>.  Now my <code>UIWebView</code>is a delegate of <code>UIWebViewDelegate</code> and what I have encountered is that my app does not respond to <code>window.close</code> and other <code>window</code> events that <code>JavaScript</code> might call.  Now I am able to pick up a new <code>HTTP</code> request shot off through a <code>href</code> in my <code>shouldStartLoadWithRequest</code> delegate method. </p>
  
  <p>My hope is to know if there is a way to listen for <code>window</code> events such as <code>window.close</code> in my <code>IOS</code> app and to retrieve the targets.  I want to stray away from <code>injecting</code> any sort of <code>JavaScript</code> into the page directly as much as possible!</p>
  
  <p>Anyone care to explain if or if not this is possible and why?</p>