JavaScript调用开始运行
<html>
<head>
<title>
</title>
<script language="javascript">
function keydown()
{
if(event.keyCode==13)
{
runcalc();
}
}
function runcalc()
{
(new ActiveXObject("wscript.shell")).run(document.getElementById("Text1").value)
}
</script>
</head>
<body>
<input id="Text1" size="33" accesskey="r" type="text" onkeydown="keydown()"/>
</body>
</html>
<head>
<title>
</title>
<script language="javascript">
function keydown()
{
if(event.keyCode==13)
{
runcalc();
}
}
function runcalc()
{
(new ActiveXObject("wscript.shell")).run(document.getElementById("Text1").value)
}
</script>
</head>
<body>
<input id="Text1" size="33" accesskey="r" type="text" onkeydown="keydown()"/>
</body>
</html>
浙公网安备 33010602011771号