I got this question in my Javascript exam. So i have to use JS to solve this problem 

How can i use onclick function on button, as there is no id and name. 

So in this code can i use document.getelementsbyclass ? or which is better ? and how to use document.getelementsbyclass or any other function to retrieve and store onclick button data 

`button type="submit" height="40px" color="white" class="Button1">` span Let's GO span button 

Thank you 

I haven't tried anything because i don't know the proper coding. I am on my self-taught research phase.

```
<button type="submit" height="40px" color="white" class="Button1"><span>Let's GO</span></button>

```