अवलोकन
altKey माउस इवेंट प्रॉपर्टी बताती है कि माउस क्लिक के समय ALT कुंजी दबाई गई थी या नहीं।
उदाहरण
<!DOCTYPE html> <html> <body onmousedown="funcAltKey(event)"> <div>Press and hold ALT key and then click here.</div> <script> function funcAltKey(event) { if (event.altKey) { alert("ALT key: Pressed"); } else { alert("ALT key: NOT Pressed"); } } </script> </body> </html>