欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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 鍵是否已被按住。