Sorry to keep on bothering you, Snib.
Please tell me what I'm doing wrong.
Can u plz tell me where should I put:
document.onkeydown=function(){handle_key;};
I tried putting it between the script tags:
<html>
<head>
<title>test</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<SCRIPT SRC="jscripts/audit.
js" TYPE="text/javascript"></SCRIPT>
<SCRIPT>
document.onkeydown=function(){handle_key;};
</SCRIPT>
</head>
<body MS_POSITIONING="GridLayout" ONUNLOAD="UpdateAudit()">
<ACONLINE:ACOGLOBALS ID="ACOGLOBALS" RUNAT=SERVER />
<form id="Form1" method="post" runat="server">
<ACONLINE:ACOHEADER ID="ACOHEADER" RUNAT=SERVER />
</form>
</body>
</html>
That didn't work, so I've also put it in the audit.
js file:
/**********************************************/
document.onkeydown=function(){handle_key;};
function UpdateAudit()
{
window.open('aco_update_audit.aspx');
}
function handle_key()
{
if(event.keyCode==116)return false;
}
/**********************************************/
And that didn't work. Any ideas? Thanks again !