I'm beginner to learn JS and I am stuck with the following function.
I'm trying to open a new window and print in the console of the new window. My code is as follows:Can you please tell me where's the error ?
var newWindow = window.open("url");
newWindow.onload = function (newWindow) {
newWindow.console.log("...something...");
}