D
DavidC
I have an asp.net web page with the javascript below at the top of the page.
This works great as a user hitting the <enter> key is not "posted" and
subsitutes the tab key. However, when the user lands on the submit button
(called BtnSave) I want the <enter> key to act as normal. Does anyone know a
way to do this? Thanks.
<script type="text/javascript">
document.onkeydown = doKey;
function doKey(e) {
if (event.keyCode == 13) {
event.keyCode = 9;
return event.keyCode;
}
}
</script>
This works great as a user hitting the <enter> key is not "posted" and
subsitutes the tab key. However, when the user lands on the submit button
(called BtnSave) I want the <enter> key to act as normal. Does anyone know a
way to do this? Thanks.
<script type="text/javascript">
document.onkeydown = doKey;
function doKey(e) {
if (event.keyCode == 13) {
event.keyCode = 9;
return event.keyCode;
}
}
</script>