WebBrowser-Control - open default browser on click on link

后端 未结 3 996
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 19:49

I use the WebBrowser-Control in my WPF-Application like

    

Now, when I navigat

3条回答
  •  不要未来只要你来
    2021-02-04 20:03

    I dont think WebBrowser is intended to be like this as even in normal browser if a hyperlink is clicked and it is represeting a straightforward URL (and not javascript based hyperlink), it will open the URL in that browser window (and that specific tab) itself. WebBrowser control mimics this basic behavior of the browser itself.

    I think you can right click on the hyperlink and say "Open in New Window" (see if that option is enabled in WebBrowser control).

    If that option is disabled you can enable it by using special HTMLHost APIs.

提交回复
热议问题