<html>
<head>
<title>Use js to determine whether the Shift key has been pressed</title>
<script type="text/javascript">
function isKeyPressed(event)
{
if (==1)
{
alert("shift was pressed")
}
else
{
alert("shift not pressed")
}
}
</script>
</head>
<body onmousedown="isKeyPressed(event)">
<p>Click a location in the document. The message box will tell you whether the shift key has been pressed. </p>
</body>
</html>
<head>
<title>Use js to determine whether the Shift key has been pressed</title>
<script type="text/javascript">
function isKeyPressed(event)
{
if (==1)
{
alert("shift was pressed")
}
else
{
alert("shift not pressed")
}
}
</script>
</head>
<body onmousedown="isKeyPressed(event)">
<p>Click a location in the document. The message box will tell you whether the shift key has been pressed. </p>
</body>
</html>