Is it possible to check the status of Scroll Lock, Num Lock and Caps Lock on page load of a web page? I've found ways to check after a keypress using JavaScript, but that's not what I'm asking.
Check Scroll Lock, Num Lock & Caps Lock in JavaScript on Page Load
5.8k views Asked by JustBeingHelpful At
2
There are 2 answers
2
thebiss
On
IN 2019, this is now possible:
var x = event.getModifierState("ScrollLock");
Source: https://www.w3schools.com/jsref/event_mouse_getmodifierstate.asp
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
Related Questions in PAGELOAD
- Run script on page load
- Implementing loading div in a php page not working
- Set session-state Cookiemode property for click event?
- In an ASP.NET web form, how to determine what causes a Page_Load()
- how to handle 1000+ images in one web page?
- On document ready get cities by country id not working [ jquery custom plugin ]
- pageLoad function in page and masterpage
- JQM 1.4.3 refresh submenu panel after AJAX load
- how to dropdown option keep selected after page loads onchange
- How to stop selenium webdriver from waiting for page load?
Related Questions in CAPSLOCK
- Detecting when CAPS LOCK is ON
- How to capture Caps Lock when in Remote Desktop so the connecting host doesn't process it?
- Delphi 2010 virtual keyboard, start with CapsLock on?
- Flutter Web Regex-How to handle throw exception when turning on caps lock button
- using GetKeyState(VK_CAPITAL) & 1 in linux
- Check Scroll Lock, Num Lock & Caps Lock in JavaScript on Page Load
- Find out which ASP.NET control fired my JavaScript event?
- Autohotkey Control + Capslock issue
- How can I check if capslock is on without waiting for the user to type character using JavaScript?
- Vim remap: Where does the Capslock go?
Related Questions in NUM-LOCK
- How to check NUM LOCK key state in Java in a portable way without displaying a frame?
- Check Scroll Lock, Num Lock & Caps Lock in JavaScript on Page Load
- Num Lock on, but the Num Lock LED off
- Can you turn NumLock on in XNA?
- preventDefault() action that works on numlock key 144 so that numberpad can still be used for shortcuts
- Turn On and Off Numlock Key using C# (.Net Framework 4.7)
- Numlock key pad not working vb.net textbox?
- Send Keys is Disabling NumLock
- How can I check and toggle Num-Lock programmatically in C#?
- Disabling num-lock toggle in C#?
Related Questions in SCROLL-LOCK
- TableView cell stop scrolling on cell
- Check Scroll Lock, Num Lock & Caps Lock in JavaScript on Page Load
- How to scroll lock a Django HTML Web Page
- How to create a ref to child component, store it in context and pass it to a sibling in React with Material UI
- Add scroll-lock button to JScrollBar
- How to scroll lock a Jface tableviewer?
- Is it possible to get Scroll Lock status in javascript?
- Page Scroll Effects - VelocityJS - (Page Anchors with Data-hijacking enabled)
- Toggle Scroll Lock on or off
- Hijack page scrolling like Google Plus?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
No, you can't get system state from javascript. You will need them to type something and then analyze the input. Probably not what you wanted to hear =/