0

I have developed a web browser using the WebBrowser API in Visual Studio for a Windows Phone application) I have add a back button to this web browser. This is the code that I use for the back button to go to previous web page:

    private void backOnClick(object sender, RoutedEventArgs e) {
          webBrowser1.InvokeScript("eval", "history.go(-1)");    
    }

So now I want to change the textbox(URL) text considering the web page when press back button. How can I do that?

4

1 回答 1

1

在控件上的LoadComplete事件中WebBrowser,查看Source属性并将其设置为TextBox(这对于重定向也很有用)。

于 2012-09-19T05:26:45.017 回答