I\'m using the WPF 3.5SP1 WebBrowser control to display a page containing some javascript functions. My program then needs to invoke a javascript function which will make an
If I'm reading the question correctly, you're looking for a callback... so for example...
function myscript()
{
some-async-function(
params, //any params you plan to use
function(result) {
//handle the result here
});
}
function some-async-function(retval,callback)
{
//assuming this really is an async function such
//as an ajax call, etc...
...
//work done, use the call back
callback(retval);
}