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 ( is working fine in all browsers except APPLIE SFARI WEB BROWSER 5.1.1.

     As per my requirement in the question, 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.
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:

I suggest you read Some signs that a JavaScript Script was Badly Written.
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.