Test file
authorDennis Schafroth <dennis@indexdata.com>
Thu, 10 Nov 2011 10:25:06 +0000 (11:25 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 10 Nov 2011 10:25:06 +0000 (11:25 +0100)
www/iphone/go.html

index 1fd9880..678e2b0 100644 (file)
   
     if(key == 13 || key == 10)  
     {  
-      document.forms[0].submit()  
-      document.getElementById('testLink').focus();  
+      //document.forms[0].submit();
+      button = document.getElementById('button');
+      button.focus();
+      button.click();
+  
+  
       return false;  
     }  
     else  
@@ -30,7 +34,8 @@
          onKeyPress="return handleKeyPress(event)"  
           maxlength="100"  
                    value="" />  
+      <input id="button" type="submit" value="go" />
       <a href="#" id="testLink"></a>  
     </form>  
   </body>  
-</html>  
\ No newline at end of file
+</html>