Hi folks,
I am trying to get this to open in a new window but not sure how:
console.log('before clickMe');
let clickMe = document.querySelector(".header-right a");
clickMe.addEventListener("click", (e) => {
console.log("clickMe clicked.");
e.preventDefault();
window.location = "http://www.google.com/";
});
How can I make this open in a new window?
Cheers!!