有人能告诉我如何在div标签中捕获键盘事件吗?
我写了这段代码,但它不起作用?
<div id="SDiv" style="background-color: White; " onkeypress="kypress()">
<asp:Label ID="LblSaveAndMoveNext" runat="server" Visible="False" Text="Save"></asp:Label>
</div>
<script type="text/javascript">
function kypress() { EnableButtons(true);}
</script>