-3
function domingo(){
var domingo= document.getElementById("domingoid");
alert(domingo)
}
<div class="btn" id="domingoid" onclick="domingo();">
<h2 class="paddi"> DOMINGO </h2>
<h3>20 de Outubro</h3>
</div>
Which element? At what time?
– hugocsl
Without knowing under what circumstances the edge should be applied, giving an answer is something complex. Because depending on when the edge should be applied, the answer may not be what you expect. Ex: if the goal is to apply the edge reacting to the mouse passage, then the best and simplest option is not Javascript, the best option in this scenario is CSS using the pseudo-class
:hover
.– Augusto Vasques