Cytat
Łatwiej na żywo zmieniejszać czcionkę. Możliwe, żę da sie sprawdzić, ale nie we wszystkich browserach.
Tylko że chodzi o to, aby passwordy byly case sensitive... a ten alert to cos a'la windowsowy przy logowaniu

---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> <script type="text/javascript">
function capsError( capsEngaged ) {
if( capsEngaged ) {
documetn.getElementById('warning').style.display = 'block';
} else {
documetn.getElementById('warning').style.display = 'none';
}
}
function capsDetect( e ) {
if( !e ) { e = window.event; } if( !e ) { MWJ_say_Caps( false ); return; }
var theKey = e.which ? e.which : ( e.keyCode ? e.keyCode : ( e.charCode ? e.charCode : 0 ) );
var theShift = e.shiftKey || ( e.modifiers && ( e.modifiers & 4 ) ); //bitWise AND
MWJ_say_Caps( ( theKey > 64 && theKey < 91 && !theShift ) || ( theKey > 96 && theKey < 123 && theShift ) );
}
function MWJ_say_Caps( oC ) {
if( oC ) {
document.getElementById('warning').style.display = 'block';
} else {
document.getElementById('warning').style.display = 'none';
}
}
<input type="text" onkeypress="capsDetect(arguments[0]);"><div id="warning" style="display: none;">Uwaga ! Caps lock jest włączony.
</div>
w FF i IE działa. Dziekuje.