window.open isn't working
So if you test out my button you can see that the go to button isn't working. It's supposed to open a link in a new tab but for this, it just breaks the page. If you manually put in the open() function though it will log the link that should open many times but never actually open it. Can someone tell me why this isn't working?
You have a typo, I'm not sure if this is the problem though.
consoel.log("Window type is good");
@MikeJMS8910 This because
open() is also considered as
window.open(). You are colliding with the
onclick attribute. Put the script tag right before the bottom of webpage. I forked your repl and you can see the changes I made here: https://repl.it/@Baconman321/RandomReplGenerator#index.html.
The latter is barely updated any more :(
You aren't specifying a URL when you open it.
Also, it's a good idea to put window before the method, like so:
Again, make sure you pass in the URL as an argument in window.open, otherwise it will open a blank page (or none at all).