I can't find any doucmentation on this. I have a WebBrowser
control for my C# Windows Phone app, and I would like to have a button to take the user back one page. How can I do this? (I know how to make the button or access the physical back button, the question is just about how to make a function to take the user back one page.
Thanks.
EDIT: Also, if there's nothing to go back to, I'd like to run another function if possible.
EDIT: Tried this: browser.InvokeScript("eval", "history.go(-1)");
, it's not working for some reason. It just closes the app.
EDIT: Got the above working with e.Cancel = true;
but how do I restore the default function if there is no page to go back to...?