J
jrice
This code works perfectly in IE, but does not work in Netscape 7....It
is designed to force the user to only enter numbers into a textbox. I
also want to allow them to tab over the box as well as handle an enter
key press while they are in the textbox. Here is the code.....
OnKeyPress="javascript:if(navigator.userAgent.indexOf("MSIE"!=-1)
{var keyCode = event.keyCode;}else {var keyCode = event.which;}if
(keyCode > 47 && keyCode < 58 || keyCode==8 ||
keyCode==9){return true;} else{return false};" /></td>
</tr>
anyone give me any insight into why this will not work in Netscape? if
you can please e-mail me directly.....
Thanks in advance
is designed to force the user to only enter numbers into a textbox. I
also want to allow them to tab over the box as well as handle an enter
key press while they are in the textbox. Here is the code.....
OnKeyPress="javascript:if(navigator.userAgent.indexOf("MSIE"!=-1)
{var keyCode = event.keyCode;}else {var keyCode = event.which;}if
(keyCode > 47 && keyCode < 58 || keyCode==8 ||
keyCode==9){return true;} else{return false};" /></td>
</tr>
anyone give me any insight into why this will not work in Netscape? if
you can please e-mail me directly.....
Thanks in advance