I find the Backspace key is problematic with form submissions. If a field in the form is not selected then the user is directed to the previous page. Is there anyway to disable this javascript or vbscript wise?
you can try this, and/or adapt it to suit your needs. note: the backspace will not work in the form element either. you'd seemingly have to loop through every text element in the form and make the onkeydown return true all the time to fix this issue.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script type="text/javascript"><!--
function noBackSpace(e) {
if (!e) var e = window.event;
return !(e.keyCode == 8);
}
//--></script>
</head>
<body onkeydown="return noBackSpace(event);">
<form name="f"><input type="text" name="t1" /></form>
</body>
</html>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.