Hi All,

Can anybody help me??

I am calling a Javascript code from within VB application, with the help of ExecScript method. The problem is that, if I am using only some alert() statements in the javascript's code, then it runs fine. But as soon as I use window.event.clientX or window.images[0].style or some javascript objects in Javascript code, there is a run time error : Automation Error (-2147417843).

I dont know what mistake I am doing. I am doing web programming first time through VB. When I test this Javascript code in an HTML file, then it is running fine. But when I call this JS code from within VB, then there is this error.

Please help me in solving this problem.

Thanks in advance.