you should use window.open(new URL("www.google.com"), "_blank");
window.open(new URL("www.google.com"), "_blank");