Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

calling javascript code in C# Windows Phone 7.5 app

I would like to run some JavaScript code in C# to clear localstorage after clicking a button in appbar in a Windows phone 7.5 app. I came across various code through Stack Overflow and forums But the specific code does not work in Windows phone app. Could you help me providing code which works in Windows Phone 7.5 app?


1 Answers

You Just clear the

Cookies and Web Browser Cache

YourWebBrowserControl.ClearCookiesAsync();

YourWebBrowserControl.ClearInternetCacheAsync();

like image 51
Kiren Paul Avatar answered Sep 06 '26 01:09

Kiren Paul