I don't know why all the elements disappear, even when clicking any of the buttons, for those wondering, I'm trying to make a collectible car card game website.
open()is already the name of a function that opens a new page, so when the button is clicked, theopen()function will be called and opened A blank page. Just change your function name:
Also, consider changing your code to use event listeners and variables. Here's a better practice:
open()
is already the name of a function that opens a new page, so when the button is clicked, theopen()
function will be called and opened A blank page. Just change your function name:Also, consider changing your code to use event listeners and variables. Here's a better practice: