0
votes

I'm trying to design a multiple tab browser with webbrowser-control,

when my webrowser invoke the following javascript.

function myFunction() {
    var myWindow = window.open("", "_blank");
    // The website need do something to get url
    myWindow.location.href = "https://www.google.com";
}

my webbrowser fire newWindow event first, then i will open a new webbrowser,

in this case the url is "about:blank",

but the problem is how to bring "myWindow" to the new webbrowser and navigate to the correct url.

thanks a lot.

1

1 Answers

0
votes

Use _parent instead of _blank in window.open.