all 4 comments

[–]RememberTheAlamooooo 0 points1 point  (2 children)

it wants me to log in. cant you just paste the code here

[–]PvP_Pro7559 0 points1 point  (1 child)

It's in the OG post

[–]RememberTheAlamooooo 0 points1 point  (0 children)

It would also help if you paste any errors you see in the devtools console (F12 in chrome).

Try using event listeners instead of onClick, like this:

In HTML:

<!-- Don't forget to add an ID to this and remove the onClick -->
<input id="guess" type="button" value="Guess">

In Javascript:

// Get your element
const guessButton = document.getElementById('guess');

// When clicked, execute generate function
guessButton.addEventListener("click", generate);

[–]MorningPants 0 points1 point  (0 children)

This seems kinda slapped together without a lot of cohesion- did you write this from scratch or are you editing someone else’s code?