question with javascript and sendkeys?
can anyone help me get the "test" to appear in the search section with the use of sendkeys?
<html>
<head>
<script>
var WshShell = new ActiveXObject("WScript.Shell");
function google()
{
WshShell.Run("iexplore.exe -nomerge http://www.google.com");
WScript.Sleep (5000);
WshShell.SendKeys ('test');
WScript.Quit(1);
}
</script>
</head>
<a href="#" onclick="javascript:google();">google</a>
</html>