在页面加载时,模拟键盘输入

<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>
<body onload="selecttoolid('find')">
</body>
posted @ 2006-02-11 16:45  RicoRui  阅读(328)  评论(0编辑  收藏  举报