Skip to content

Instantly share code, notes, and snippets.

View rigalpatel001's full-sized avatar

Rigal Patel rigalpatel001

View GitHub Profile
@rigalpatel001
rigalpatel001 / Detect_CapsLock.html
Created August 17, 2024 09:35
Top 3 Ways to Detect Caps Lock in Your Web App
When users enter passwords or other sensitive information in a web application, it's crucial to provide them with the best possible experience. One common issue is the accidental activation of Caps Lock, which can lead to failed login attempts and user frustration. In this blog, we’ll explore simple ways to detect Caps Lock using JavaScript to improve your application's usability and security.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Caps Lock Detection Test</title>
<style>
body {
@rigalpatel001
rigalpatel001 / Clipboard.html
Created August 17, 2024 11:12
How to Quickly Find Out What’s in Your Clipboard
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Clipboard Access Example</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 50px;