title: Help Using Javascript Code in a UIWebView
body: <p>I would like to run the following code in a webView, so that the content is editable:</p>
  
  <pre><code>javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0
  </code></pre>
  
  <p>So far I have got as far as trying this:</p>
  
  <pre><code>- (void)webViewDidFinishLoad:(UIWebView *)webViews  
  {    
      NSString *string = @"javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0";
      [webView stringByEvaluatingJavaScriptFromString:string];
      [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:string]]];
      NSLog(@"finished load");
  }
  </code></pre>
  
  <p>If you could tell me how to get this working that would be great.</p>