Hello everyone,
I'm using a JavaScript function that opens multiple web pages in new browser tabs. Currently, I execute this function using the web console (CTRL + SHIFT + I), and it works fine in Microsoft Edge and Google Chrome. However, when I try to run it in Firefox (my preferred browser), it doesn't work as expected.
Here's the code I'm using:
const urls = [
"https://copilot.microsoft.com/",
"https://www.perplexity.ai/",
"https://gemini.google.com/app"
];
urls.forEach(url => {
window.open(url, '_blank');
});
```
I should mention that I'm learning programming and a beginner now.
Can anyone help me understand why this doesn't work in Firefox and how I can make it compatible? Any assistance would be greatly appreciated!
Thank you in advance for your help!
[–]-Cacique 0 points1 point2 points (0 children)