title: objective c method call from javascript file
body: <p>i would like to know how to call an objective c method from javascript. for example i have a javascript function defined in my myFile.js like this :</p>
  
  <pre><code>function() {
  alert('test');
  ....          // How i can an objective c function here ???
  }
  </code></pre>
  
  <p>i have also a UIWebView :</p>
  
  <pre><code>-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
  ....
  // what to do here ?????? 
  }
  </code></pre>
  
  <p>thanks for your answer</p>