need2progm
Programmer
I am having a brain fart.. I can not remember how to set a button as the default to the enter key. I thought it was setting the tab index to 0 and the other buttons to (1,2,3,4, ect).
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.
<!-- In the <Head> tag -->
<script lang="Javascript">
function onkey() {
if (window.event.keyCode==13) {
document.all["buttonname"].focus();
}
// You could even put in a "Home" key function!
if (window.event.keyCode==36) {
window.location="homepageurl";
}
}
</script>
<body onkeydown="onkey();">