locked
how to webview use interceptor new window events

    Question

  • such as the title thanks for help
    Friday, April 18, 2014 9:10 AM

Answers

  • If the link has "_blank" in it, it's going to open in a new IE window by default. If you don't like this behavior, you need to use javascript injection to override the behavior. You can use standard javascript to override the behavior.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, April 21, 2014 1:34 PM
    Moderator

All replies

  • I have no idea what you're asking for.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 18, 2014 12:33 PM
    Moderator
  • Oh I'm
    sorry
    my English is a bit of a problem, my question is very simple, using the windows app store inside WebView to access a jump links (such as <a href= "myhtml.html" target=
    "
    _blank" ></a> or window.open (URL)), I would like to open the do not want to open IE in my WebView, so do I what to do

    谢谢

    Thank you

    Friday, April 18, 2014 3:46 PM
  • If the link has "_blank" in it, it's going to open in a new IE window by default. If you don't like this behavior, you need to use javascript injection to override the behavior. You can use standard javascript to override the behavior.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, April 21, 2014 1:34 PM
    Moderator
  • good
    Monday, April 21, 2014 1:46 PM