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

Posted on 2011-10-27
Last Modified: 2012-05-12
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.
    1 Comment
    LVL 42

    Accepted Solution

    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.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now