1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta name="viewport" content="width=320; user-scalable=no" />
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 <title>Safari Mobile input test page</title>
8 function handleKeyPress(e)
12 key = window.event.keyCode;
16 if(key == 13 || key == 10)
18 //document.forms[0].submit();
19 button = document.getElementById('button');
32 <form action="javascript:alert('search')">
34 onKeyPress="return handleKeyPress(event)"
37 <input id="button" type="submit" value="go" />
38 <a href="#" id="testLink"></a>