How to check if a javascript function exists from silverlight
In your silverlight code you check for the presence of anything including a function a with the GetProperty method:-
var fn = HtmlPage.Window.GetProperty("myJavascriptFunction");
if (fn != null)
fn.InvokeSelf("Hello");
On caveat though, if the name exists but it isn't a function the above code will throw an exception.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With