How can I get the page title in WebBrowser control?

后端 未结 6 684
挽巷
挽巷 2021-02-13 20:00

How can I get the page title in a WebBrowser control when I navigate to different websites?


xmlns

xmlns:phone=\"clr-namespace:Microsoft.Phone.Contr         


        
6条回答
  •  Happy的楠姐
    2021-02-13 20:39

    You can use InvokeScript to get title as,

     String title = browser.InvokeScript("document.title");
    

    I don't know it's correct or not but you can try window.title too.

提交回复
热议问题