Can I check the status of Scroll Lock, Num Lock and Caps Lock when loading a page on a web page? I found ways to check after pressing a key using JavaScript, but this is not what I ask.
No, you cannot get system state from javascript. You will need them to enter something, and then analyze the input. Probably not what you wanted to hear = /
In 2019, this became possible:
var x = event.getModifierState("ScrollLock");
Source: https://www.w3schools.com/jsref/event_mouse_getmodifierstate.asp
Source: https://habr.com/ru/post/1344508/More articles:Problem making an Ajax call from an ASP.NET MVC2 application - jqueryWhat browser graphics API should I learn? - browserHow to fix this unmanaged export problem using Delphi / C # - c #Can Java2D be as fast as LWJGL and JOGL? - javadetecting cap lock status on page load (or similar) - javascriptWhen to Use Using - .netSharepoint 2010 BCS - how to set cache expiration date? - sharepoint-2010Good ASP MVC instructional videos - asp.net-mvcUsing T4MVC with a script string - model-view-controllerCreating a Silverlight 4 and WPF Application - wpfAll Articles