最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

shiftLeft Property

Internet Development Index

Retrieves the state of the left SHIFT key.

Syntax

[ bPressed = ] event.shiftLeft

Possible Values

bPressedBoolean that receives one of the following values.
falseLeft SHIFT key is not pressed.
trueLeft SHIFT key is pressed.

The property is read-only. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

The document must have focus for this property to return true.

Example

The following example shows how to use the shiftLeft property to indicate when the user presses the left or right SHIFT keys.

<HEAD>
<SCRIPT>
function init() {
spanLeftShift.innerText='false';
spanRightShift.innerText='false';
}
function indicate(obj, arg) {
obj.innerText=arg;
}
function ShiftDown() {
if (event.shiftLeft) {
indicate(spanLeftShift,'true');
}
else {
if (event.shiftKey) {
indicate(spanRightShift,'true');
}
}
}
function ShiftUp() {
if (!event.shiftKey) {
indicate(spanLeftShift,'false');
indicate(spanRightShift,'false');
}
}
</SCRIPT>
</HEAD>
<BODY onload="document.body.focus(); init()" onkeydown="ShiftDown();" onkeyup="ShiftUp();">
<P>Press either the left or right SHIFT key.</P>
<TABLE>
<TR>
<TD><I>Left SHIFT Key Pressed</I></TD>
<TD><I>Right SHIFT Key Pressed</I></TD>
</TR>
<TR>
<TD ALIGN="center"><SPAN ID="spanLeftShift"></SPAN></TD>
<TD ALIGN="center"><SPAN ID="spanRightShift"></SPAN></TD>
</TR>
</TABLE>
</P>
</BODY>
This feature requires Microsoft® Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

event

See Also

shiftKey
广宗县| 武宣县| 本溪市| 济南市| 常宁市| 汤原县| 溆浦县| 麻城市| 怀远县| 秭归县| 崇阳县| 敦煌市| 南开区| 石嘴山市| 商水县| 锡林郭勒盟| 红原县| 城市| 西昌市| 庐江县| 嘉黎县| 抚顺县| 沁水县| 济宁市| 大庆市| 贵德县| 辛集市| 新乡市| 江阴市| 文安县| 南投县| 措美县| 齐河县| 江永县| 临海市| 满洲里市| 云安县| 阿鲁科尔沁旗| 新民市| 乳山市| 内江市|