JavaScript Change Cursor Icon

I already have the conditions and it worked, I just need this JavaScript syntax to change the cursor on the hand, for example, the user has a moused-over link, and then I need the syntax to change the cursor to the arrow, as if they were aligned from the link. Not so much, you just need JavaScript syntax to change cursors.

The only thing you need is to work in IE, FF, Chrome, Safari, and preferably Opera.

Thanks in advance!

+3
source share
2 answers

First of all, I'm shocked, this question has no answers and no comments on how easy Google would be to answer .

, , : object.style.cursor = 'pointer', object - DOM, .

: http://jsfiddle.net/3q5Yh/

+7

.

$('.className').css('cursor' , 'pointer'); // using className Selector.

$('#idName').css('cursor' , 'pointer');  //Using Id Selector.
+1

Source: https://habr.com/ru/post/1762559/


All Articles