Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change the cursor to pointer in js

document.body.style.cursor = *cursor-url*;
 //OR
 var elementToChange = document.getElementsByTagName("body")[0];
 elementToChange.style.cursor = "url('cursor url with protocol'), auto";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #cursor #pointer #js
ADD COMMENT
Topic
Name
6+9 =