MouseEvent altKey Property
Definition and Usage
The altKey property returns a boolean value indicating whether the "ALT" key was pressed when the mouse event was triggered.
Note:On some Mac keyboards, the "ALT" key is displayed as "Option" or "Opt".
Note:This property is read-only.
Example
Check if the "ALT" key is pressed when clicking the mouse button:
if (event.altKey) { alert("The ALT key was pressed!"); } else { alert("The ALT key was NOT pressed!"); }
সাংকেতিক
event.altKey
প্রযুক্তিগত বিবরণ
ফলাফল: |
বুল মান, যা মাউস ইভেন্টের সময় "ALT" কী চাপা আছে কিনা ইনকার করে। সম্ভাব্য মান:
|
---|---|
DOM সংস্করণ: | DOM Level 2 Events |
ব্রাউজার সমর্থন
বৈশিষ্ট্য | চ্রোম | আইই | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|---|
altKey | সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |
সংশ্লিষ্ট পাতা
HTML DOM রেফারেন্স ম্যানুয়েলঃMouseEvent ctrlKey প্রতিশব্দ
HTML DOM রেফারেন্স ম্যানুয়েলঃMouseEvent metaKey প্রতিশব্দ
HTML DOM রেফারেন্স ম্যানুয়েলঃMouseEvent shiftKey প্রতিশব্দ