Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does WIndows Web Broser ole control supports 'window.addEventListener' within <Script></Script> ? 1

Rajesh Karunakaran

Programmer
Sep 29, 2016
559
MU
Dear all,

I have to show a web page (an silmple html file) in a form using Windows Web Broswer ole control. The html has javascript which adds an Event Listener. Does this control supports that?

Or, is there an alternative Web Browser control that supports this and works with Vfp ?
 
Last edited:
First of all set the Silent property to .T. to not get any and every warning or alert about JS.

Then you can try this:

If JS using an event listener still does not work, then that's a sure sign you'd need something more modern than the MS Webbrowser Control to make this work.
Search the forum, there are already a few threads about using alternatives:
 
Last edited:

Part and Inventory Search

Sponsor

Back
Top