views:

19

answers:

0

How can i set handler for IE mouseover event in WSH script?

This code don't work.

var ie = new ActiveXObject("InternetExplorer.Application");
ie.Navigate("about:blank");
ie.Visible = true;


function handler()
{
    WSH.Echo("test");
}

ie.Document.onmouseover = handler;