thanks
Forums »
Javascipt Forums And Other Related Topics Discussion About Javascript Progamming »
How To Detect If CAPS LOCK From Users With Javascript And PHP Uppercase Typing
Javascipt Forums And Other Related Topics Discussion About Javascript Progamming »
How To Detect If CAPS LOCK From Users With Javascript And PHP Uppercase Typing
How To Detect If CAPS LOCK From Users With Javascript And PHP Uppercase Typing
Description: How To Detect If CAPS LOCK From Users With Javascript And PHP Uppercase Typing
Tags: how ,to ,detect ,if ,caps ,lock ,from ,users ,with ,javascript ,and ,php ,uppercase ,typing
Posted On Mon May 28, 2007 By lucas In Javascipt Forums And Other Related Topics Discussion About Javascript Progamming Forums
thanks
.Jam35B0nd Sun Feb 26, 2012
You dont need to tell them about caps lock until they type a letter, so the number not working isnt an issue.
KB Fri Oct 28, 2011
Doesn't work for caps shift <number>
wa7aaaad Mon May 09, 2011
great code man!
MaVRoSCy Tue Jul 06, 2010
Thanks a lot for this, exactly what we were looking for
JAVAMASS Thu Nov 27, 2008
THAT WAS NEAT
tanka Mon May 28, 2007
thanks webune this workds great, just want i was looking for
yako Mon May 28, 2007
yes, you can check this out:
Try it. Set your "Caps Lock" on your keyboard and they type anything on this bar:
Caps Lock is on.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>How To Detect Caps Lock in Javascript</title>
<script>
function capLock(e){
kc = e.keyCode?e.keyCode:e.which;
sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
document.getElementById('divMayus').style.visibility = 'visible';
else
document.getElementById('divMayus').style.visibility = 'hidden';
}
</script>
</head>
<body>
<h1>FREE WALLPAPERS - Wallpaperama.com
</h1><hr>
<p>How To Detect Caps Lock in Javascript
</p>Try it. Set your "Caps Lock" on your keyboard and they type anything on this bar:
<hr>
<SPAN><input type="password" name="txtPassword" onkeypress="capLock(event)" />
<SPAN><div id="divMayus" style="visibility:hidden">Caps Lock is on.</div>
<hr>
<p><a href="http://www.wallpaperama.com">See More >> </a></p>
<p align="center">Website Hosting by <a href="http://www.webune.com">Webune.com</a> </p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>How To Detect Caps Lock in Javascript</title>
<script>
function capLock(e){
kc = e.keyCode?e.keyCode:e.which;
sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
document.getElementById('divMayus').style.visibility = 'visible';
else
document.getElementById('divMayus').style.visibility = 'hidden';
}
</script>
</head>
<body>
<h1>FREE WALLPAPERS - Wallpaperama.com
</h1><hr>
<p>How To Detect Caps Lock in Javascript
</p>Try it. Set your "Caps Lock" on your keyboard and they type anything on this bar:
<hr>
<SPAN><input type="password" name="txtPassword" onkeypress="capLock(event)" />
<SPAN><div id="divMayus" style="visibility:hidden">Caps Lock is on.</div>
<hr>
<p><a href="http://www.wallpaperama.com">See More >> </a></p>
<p align="center">Website Hosting by <a href="http://www.webune.com">Webune.com</a> </p>
</body>
</html>
Information
Title: How To Detect If CAPS LOCK From Users With Javascript And PHP Uppercase Typing
Info: This Post Has Been Viewed 0 Times Since
Date: Mon May 28, 2007
Author lucas Received 7 Replies #795
Date: Mon May 28, 2007
Author lucas Received 7 Replies #795
Related Content
Related Sites
Add Your Website
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Tue Jun 18, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Tue Jun 18, 2013 (-8 GMT)
Powered by: Webune Forums V5