Javascript:
This is a good method taught to me by my friend to disable
any character in the keyboard Within Forms in your web page/ web application.
<html>
<head>
<script language=javascript type=text/javascript>
<!--
function stopRKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
// var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
alert(evt.keyCode);
if (evt.keyCode == 39 || evt.keyCode == 222) {return false;}
}
document.onkeypress = stopRKey;
-->
</script>
</head>
<body>test
<textarea rows="5"></textarea>
</body>
</html>
Save above code as html and try type single quote(') in test box !
4 comments:
Great and useful post.
UiPath Training in Chennai
UiPath Training in Adyar
RPA Training in Chennai
RPA courses in Chennai
Blue Prism Training in Chennai
AWS Training in Chennai
I am really enjoying reading your well written articles.
It looks like you spend a lot of effort and time on your blog.
Best Web Development Training Institute in Bangalore
Web Design And Development Courses in Bangalore
Best Web Designing Training Institute in Bangalore
php training institute in bangalore
best php training institute in bangalore
best php training in bangalore
php training center in bangalore
Very interesting post! I really like it. Keep sharing.
Oracle Training in Chennai
Oracle Training institute in chennai
Oracle course in Chennai
Embedded Training
LINUX Course in Chennai
Tally Institute in Chennai
Manual Testing Course
Post a Comment