ASP.NET C# 3.5 Web Application: In Apple Safri Web Browser Wrongly working:- PASSWORD text box need to alert on focus if the end-user client machine keyboard CAPS LOCK ON

Hi TonyReba,

     The javascript give by you (http://www.experts-exchange.com/codeSnippetPopup.jsp?csid=8226601) is working fine in all browsers except APPLIE SFARI WEB BROWSER 5.1.1.

     As per my requirement in the question http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_27394907.html, the required logic is, to enter the password, the enduser should not use CAPS LOCK ON and they SHOULD be using the shift key.

     But if we use the shift key in the SAFARI browser, that is telling the CAPS LOCK IS ON. This is not correct. Please help me to get the solution.
chrisdtrinityphysiciansAsked:
Who is Participating?
 
David S.Connect With a Mentor Commented:
The code that TonyReba posted is really old and not particularly well written in the first place. I'm not surprised it doesn't work as expected in some browsers.

Check these out:
http://www.howtocreate.co.uk/jslibs/htmlhigh/capsDetect.html
http://24ways.org/2007/capturing-caps-lock

I suggest you read Some signs that a JavaScript Script was Badly Written.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.