在ie客户端模拟键盘输入!
发表于:2007-06-30来源:作者:点击数:
标签:
<html>
<body>
<table>
<tr><
td onclick="selecttoolid(@#find@#)">尋找</td></tr>
</table>
</body>
</html>
<script language="
javascript">
function selecttoolid(id){
var WshShell = new ActiveXObject("Wscript.Shell");
switch(id){
case @#find@#:
try{WshShell.SendKeys("^f");} catch(e){}
break
}
WshShell.Quit;
}
</script>
原文转自:http://www.ltesting.net