Help I am a beginner in javascript!

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:

HOME

Photo Gallery

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 :frowning:

Corvid understands all of Javascript, except for anything that accesses the DOM. This keeps the user from inadvertently “breaking” something. Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w.

Programming on a Wix site is done using Corvid. The Corvid Resources page provides tutorials, examples, and articles on getting the most out of Corvid. To learn more about Javascript, visit one of the Javascript coding sites which will help you learn Javascript from basic to advanced - Javascript.info is a good one.