亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

altKey 事件屬性

定義和用法

altKey 事件屬性返回一個(gè)布爾值。指示在指定的事件發(fā)生時(shí),Alt 鍵是否被按下并保持住了。

語(yǔ)法

event.altKey=true|false|1|0

實(shí)例

下面的例子可提示當(dāng)鼠標(biāo)按鍵被點(diǎn)擊時(shí) "ALT" 鍵是否已被按。

<html>
<head>
<script type="text/javascript">
function isKeyPressed(event)
{
  if (event.altKey==1)
    {
    alert("The ALT key was pressed!")
    }
  else
    {
    alert("The ALT key was NOT pressed!")
    }
  }
</script>
</head>

<body onmousedown="isKeyPressed(event)">

<p>Click somewhere in the document.
An alert box will tell you if you 
pressed the ALT key or not.</p>

</body>
</html>

TIY

altKey
檢測(cè) ALT 鍵是否已被按住。