Cómo agregar el evento OnClick en JavaScript
var element = document.getElementById("elem");
element.onclick = function(event) {
console.log(event);
}
TC5550
var element = document.getElementById("elem");
element.onclick = function(event) {
console.log(event);
}
<button onclick="right()"class="fas fa-arrow-alt-circle-right right" style="width:50px;height:50px;padding: 130px;"></button>