serAph1m
09-18-2003, 11:04 AM
code:
...
<link rel="stylesheet" href="/jboxx-manager/menu.css" type="text/css">
</head>
<script language="JavaScript">
<!--
document.oncontextmenu=new Function("return false;");
window.focus();
function Close_KeyDownHandler()
{
keypress = event.keyCode;
if (keypress == 27)
{
top.window.close();
}
}
-->
</script>
<body style="margin: 0px 0px 0px 0px;" bgcolor="#FFFFFF" onkeydown="Close_KeyDownHandler();">
...
this throws the following error:
Error: event is not defined
Source File: http://localhost:8080/jboxx-manager/help/description.jsp
I know its probably something simple - but whats frustrating is that this code works in IE!
...
<link rel="stylesheet" href="/jboxx-manager/menu.css" type="text/css">
</head>
<script language="JavaScript">
<!--
document.oncontextmenu=new Function("return false;");
window.focus();
function Close_KeyDownHandler()
{
keypress = event.keyCode;
if (keypress == 27)
{
top.window.close();
}
}
-->
</script>
<body style="margin: 0px 0px 0px 0px;" bgcolor="#FFFFFF" onkeydown="Close_KeyDownHandler();">
...
this throws the following error:
Error: event is not defined
Source File: http://localhost:8080/jboxx-manager/help/description.jsp
I know its probably something simple - but whats frustrating is that this code works in IE!