Is there any way to change mouse pointer icon using javascript(or any other method) when I hover it on a normal text on which I want it to appear like a hand as with links on a webpage.
Is there any way to change mouse pointer icon using javascript(or any other method) when I hover it on a normal text on which I want it to appear like a hand as with links on a webpage.
Share Improve this question asked Feb 19, 2012 at 6:29 Aishwarya ShivaAishwarya Shiva 3,41616 gold badges61 silver badges112 bronze badges3 Answers
Reset to default 4See http://www.w3schools./cssref/pr_class_cursor.asp
Using css:
div { cursor:pointer; }
Look up the css attribute cursor.
It's the best way to do it.
You could use like:
onmouseover="this.style.cursor = 'hand';" //on mouse over
onmouseout="this.style.cursor = 'auto';" // on mouse out