I am trying to apply a javascript code that should make the cursor invisible on the entire web page with document.body.style.cursor = 'none';
but when there are other elements inside the page that have a specific style or are being applied with a css class (which set the cursor to a specific value) the mouseover on those elements makes the cursor to be visible.
here is an example for a html page with my problem:
<html>
<head>
<style>
pointerCursor {
cursor: "pointer";
}
</style>
</head>
<body>
<h1> here is a web page </h1>
<button class="pointerCursor">click me</button>
</body>
</html>
when this code is being applied document.body.style.cursor = 'none';
the mouse remains not hidden on the button
Thanks