Skip to content
Advertisement

Add CSS in a function

I got my function to display my site to full screen :

JavaScript

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
JavaScript

You can also add a class to your button

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement