window.open() doesn't open the website, what to do? : <p>I have this piece of code:</p>

<pre><code> ((JavascriptExecutor)driver).executeScript("Object.assign(document.createElement('a'), { target: '_blank', href: 'https://facebook.com'}).click()");

       ((JavascriptExecutor)driver).executeScript("window.open('https://google.com')'");
</code></pre>

<p>First command is meant to create a new tab and open facebook.com and it does, first is meant to open google.com but nothing happens, am I doing anything wrong?</p>

<p>Disclaimer:<br>
1.I am not familiar with Javascript at all, this is a Java Selenium project (hence why the <code>(JavascriptExecutor)driver).executeScript</code> part and I need to use Javascript for these few lines.<br>
2.I tried multiple simpler piece of codes instead of this one but nothing worked hence why I ended up with this which is not the simplest.</p>
