I am loading an HTML page that has a form. I would like to be able to dismiss the keyboard when the user clicks on GO or if he clicks on the SUBMIT button on the HTML page.
A more concise way without needing to know what element is selected is the following:
[webView stringByEvaluatingJavaScriptFromString:@"document.activeElement.blur()"];