张晓华的博客

        2005年,最后一场雪,还是下了,虽然凄凉了一些!
posts - 171, comments - 87, trackbacks - 5, articles - 1

在ie客户端模拟键盘输入

Posted on Thursday, November 16, 2006 1:28 AM
<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>

Post Comment

Title  
Name  
Url
Comment   
Protected by Clearscreen.SharpHIPEnter the code you see: