Within my vue.js application, I have encountered an issue when attempting to utilize window.open()
to open a new tab. Strangely, whenever I use this method, the new tab opens briefly before immediately closing without loading any content. Surprisingly, window.open()
works seamlessly in Firefox and window.location.replace
also functions properly.
I am perplexed as to why window.open()
is failing to work as expected.
openWindow(info) {
window.open('http://10.100.100.100:9999/window?someInfo=' + info);
},
On a side note, I decided to test out different code and found that the following snippet worked flawlessly:
openWindow(info) {
window.open("http://www.google.com");
},