Using window.external.Notify("someText") in my
Windows Phone 8 HTML5 Application
function func()
{
window.external.Notify("clearTextBox");
}
An event handler for ScriptNotify has been implemented
private void BrowserScriptNotify(object sender, NotifyEventArgs e)
{
//Business logic goes here
}
The XAML code includes the following:
<phone:WebBrowser x:Name="Browser"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Loaded="Browser_Loaded"
IsScriptEnabled="true"
ScriptNotify="BrowserScriptNotify"
NavigationFailed="Browser_NavigationFailed" />
Everything is functioning correctly, but how can I return results from the event handler back to JavaScript? Is calling a JavaScript function at the end of the event handler the best approach?