Fix bytarget list not cleared for new search PAZ-1019
[pazpar2-moved-to-github.git] / www / mobile / go.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">  
2 <html>  
3   <head>  
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>  
7   <script>  
8   function handleKeyPress(e)  
9   {  
10     var key;  
11     if(window.event)  
12       key = window.event.keyCode;  
13     else  
14       key = e.which;  
15   
16     if(key == 13 || key == 10)  
17     {  
18       //document.forms[0].submit();
19       button = document.getElementById('button');
20       button.focus();
21       button.click();
22   
23   
24       return false;  
25     }  
26     else  
27       return true;  
28   }  
29   </script>  
30 </head>  
31 <body>  
32   <form action="javascript:alert('search')">  
33       <input type="text"  
34          onKeyPress="return handleKeyPress(event)"  
35           maxlength="100"  
36                    value="" />  
37       <input id="button" type="submit" value="go" />
38       <a href="#" id="testLink"></a>  
39     </form>  
40   </body>  
41 </html>