Handling hardware back button and sending it to WebBrowser control running on Windows Phone
I have a web browser control embedded into a PhoneApplicationPage. I have to handle the hardware back button and force the web browser to go back. I know how to handle hardware back button. How do you force the webbrowser to go to a previous page? The seemingly simple GoBack() and CanGoBack property on WinForms webbrowser seems to be missing on Windows Phone. If you enable script on the WebBrowser control by setting IsScriptEnabled="true" you can then use the following to navigate backwards within the browser: private void backButton_Click(object sender, EventArgs e) { try { browser