altKey মাউস ইভেন্ট প্রপার্টি দেখায় যে মাউস বাটন ক্লিক করার সময় SHIFT কী প্রেস করা হয়েছে কিনা।
উদাহরণ
<!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>