Problem with ObjectForScripting and WebBrowser element

M

Matthias Lee

I create a WebBrowser element called 'Browser1' and link it to a page containing a simple JavaScript alert function and a button with onClick set to 'window.external.Testing()'.

I can call the JS function inside C#, but i cannot call from the button to a C# function.
I always get the error "Object doesn't support property or method"
Has anyone run into this?

I used the code on msdn, but had to change it since i was using WPF/XAML
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top