I got my function to display my site to full screen :
} else {
if (document.exitFullscreen) {
document.exitFullscreen();
}
}
that I associate with a button image and it worked !
But when I move my cursor over it, the cursor remains in “default” version so I would like it to become “pointer” to give the effect of a button : “cursor: pointer;” and I don’t manage to enter my css in the function to make it work.
Advertisement
Answer
So basically what you can do is
button{
cursor:pointer;
}<button>Hello there</button>
You can also add a class to your button
.btn{
cursor:pointer;
}<button class="btn">Hello there</button>