Good day.
In my vuejs application i am trying to open a new tab trough window.open() but whenever i do that the a new tab opens and immediately closes before loading anything at all. Window.open() works just fine on Firefox and window.location.replace also works normally.
Why window.open() ain't working?
openWindow(info) {
window.open('http://10.100.100.100:9999/window?someInfo=' + info);
},
PS: I also tried the following code just to see what happens and it worked just fine.
openWindow(info) {
window.open("http://www.google.com");
},
Per https://developer.mozilla.org/en-US/docs/Web/API/Window/open
It appears you need the second param.
window.open(url, windowName, [windowFeatures]);
openWindow(info) {
window.open('http://10.100.100.100:9999/window?someInfo=' + info, '_blank');
},
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.