Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function checkForEnter(e)
{
var l_oKeycode = '';
if (window.event)
{
l_oKeycode = window.event.keyCode;
} else {
l_oKeycode = e.which;
}
if (l_oKeycode == 13)
{
setTimeout("document.getElementById('btn').focus()",10);
}
}
</script>
</head>
<body>
<form action="" onsubmit="return false;">
<fieldset>
<input type="text" name="q" id="q" value="" onkeydown="checkForEnter(event)"/>
<button id="btn" onfocus="alert('I was focussed')">Some button</button>
</fieldset>
</form>
</body>
</html>