<html STYLE="font-family: 宋体, MS Song; font-size: 9pt;
left: 2.6em; top: 9.7344em; width: 12.46em; height: 1.521em;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
<title>测试程序</title>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
border="dialog"
BORDERSTYLE="normal"
CAPTION="yes"
ICON=""
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="no"
SYSMENU="yes"
VERSION="1.0"
WINDOWSTATE="normal"/>
</head>
<body scroll=no topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 οnkeypress="keyevent()">
<textarea οnkeypress="if(event.keyCode==10)eval(this.value)" οncοntextmenu="win.document.write(this.value); win.document.close();" title="点右键测试,CTRL+ENTER运行框中代码" style="width:100%; height:50%" id=text>
</textarea>
<iframe id="win" src="about:blank" style="width:100%; height:50%"></iframe>
</body>
</html>
<script>
function keyevent()
{
var code = event.keyCode;
switch(code)
{
case 20://ctrl+T
var s = "";
var o = prompt("输入要循环的对象","document");
break;
//default : alert("按键CODE是: [" + code + "]");
}
}
</script>