Hi i need help please! i’m a beginner at java script. i’m trying to use an onlick event to change the color of a button in my code, this button links to and other HTML file. Here is the HTML and CSS code.
HTML code:
CSS code:
.btn-hm{
font-family: ‘Mansalva’, cursive;
color:white;
text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
border: 4px solid white;
padding:10px 22px;
font-size: 35px;
border-radius: 10%;
background-color:gray;
cursor: pointer;
cursor: hand;
}
.btn-gp{
padding:10px 22px;
font-size: 35px;
border-radius: 10%;
font-family: ‘Mansalva’, cursive;
border: 4px solid white;
color: white;
text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
background-color:gray;
cursor: pointer;
cursor: hand;
}
I’ve tried a few things in JS and it fail every time. please someone help me and explain what i need to doe