JavaScript Reference/Javascript Properties/shiftLeft

Материал из Web эксперт
Перейти к: навигация, поиск

"shiftLeft" Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    var y = event.shiftLeft;
    if (y == false) {
       y = "not pressed."; 
    } else {
       y = "pressed.";
    }
    alert("The status of the left Shift key is "+y); 
} 
</script>
<a id="myL" 
    title="The wbex.ru home page" 
    href="http://www.wbex.ru/" 
    target=_blank
    onmouseover="function1()">
    unveil the status of the Shift key
</a>
</body>
</html>



"shiftLeft" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |event                                                         |
+----------------+--------------------------------------------------------------+



"shiftLeft" Syntax and Note

Note:
Read-only property. 
Is left SHIFT key pressed. 
    
Syntax:
    
window.event.shiftLeft