I got my function to display my site to full screen :
JavaScript
x
6
1
} else {
2
if (document.exitFullscreen) {
3
document.exitFullscreen();
4
}
5
}
6
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
JavaScript
1
3
1
button{
2
cursor:pointer;
3
}
JavaScript
1
1
1
<button>Hello there</button>
You can also add a class to your button
JavaScript
1
3
1
.btn{
2
cursor:pointer;
3
}
JavaScript
1
1
1
<button class="btn">Hello there</button>