javascript - PhoneGap catch 'Enter' pressed event for iPhone and android on anchor tag -
i want know how catch 'enter' pressed event using phonegap.
i have form anchor tag. how catch when user has pressed "enter" in keyboard. have write javascrpt
<head> <script language="javascript"> $("a.submit").click(function () { if(window.event.keycode == 13) { alert(window.event.keycode); } } </script></head> <body> <a id="submit" href="abc.html" class="abc"> </body>
Comments
Post a Comment