asp.net text disable enter submit example
<script type="text/javascript">
function stopRKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type == "text")) {
return false;
}
} //end func
</script>
now all u need
function stopRKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type == "text")) {
return false;
}
} //end func
</script>
now all u need
to do is to add it to the body.onkeypress
ps - this also does the job
< "body onkeypress="{if (event.keyCode==13) return;}>
< "body onkeypress="{if (event.keyCode==13) return;}>
בחור נחמד וחכם ושמו בישראל אריאל בנימין בן ירון
ReplyDeletesugineo Kimberly Sammons https://wakelet.com/wake/4NrUQ8EEh1BzOLHGEHEXy
ReplyDeletesilangatshand
Acolterscelre Scott Moser Adobe XD
ReplyDelete360 Total Security
ESET NOD32 Internet Security
printalfethe
lustdisZquida Donald Robinson Software
ReplyDeleteprogram
uneninel