Struggling to capture key press events on an image control in asp.net. The code I've tried doesn't seem to be working. Here's what I have:
<head runat="server">
<title></title>
<script type="text/javascript" language="javascript">
function keyPress(e) { alert('hi'); }
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<img id="img1" alt ="" width="950" height="950" onkeypress="keyPress();" src="Images/090069_0709152912.jpg" />
</div>
</form>
</body>
Any suggestions on how to make this work?