Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

TWVBrowser.ExecuteScript

Post Reply
polass
Posts: 13
Joined: Sun Jun 12, 2022 6:59 pm

TWVBrowser.ExecuteScript

Post by polass »

do you have a library of examples using TWVBrowser.ExecuteScript please? basic commands, functions, whatever. I've only gotten to the basics so far (document.GetElementBy...). The syntax is a bit different from JavaScript and it's giving me problems. They learn best by examples.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: TWVBrowser.ExecuteScript

Post by salvadordf »

Hi,

TWVBrowser.ExecuteScript should execute be the same JavaScript code as any other Chromium based browser.
Microsoft has disabled a few browser features in WebView2 but other than that, you should be able to use normal JS code.
Post Reply