I Am developing simple wp7 app for learning.
I want to do the below tasks In Windows Phone 7 application.
navigate to a webpage (http://some-url/) and am able to load this page(using webBrowser) i don’t want to display header div (on top of the page). how can i call java script (InvokeScript) for this web browser page
and this html webpage is not my app.
the above @Aure77 ans works fine but apply Invoke script function diff
you can use
InvokeScriptfunction to remove or hide am also struggled to solve this I think Your are usingInvokeScriptinPhoneApplicationPage_Loaded,webBrowser1_Navigatedthat will throws errorsand you can use this method in another event handler like
MainPage_MouseLeftButtonDown,webBrowser1_LoadCompletedand the code isthat works fine for me 🙂 try this