[MsHtml] Execute Javascript in a MsHtml's document

C

# Cyrille37 #

Hello,

A HTML document is loaded with the axWebBrowser object, then it is acceded with
the MsHtml object.

We can call a document's html element method, like the Button's Click method :

public class ... {
...
HTMLInputElement theButton = (HTMLInputElement) myDoc.all.item("theButton", 0);
theButtonclick();
...
}

But how to call a document's Javasript function defined like :

<html>
....
<script language="JavaScript" type="text/javascript" >
function toggleEffect() {
...
}
</script>
....
</html>

Thanks for you help,
Cyrille.
 

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