I want JavaScript code to detect the cursor type.
For example when the cursor hovers in textarea it changes from default to text ..
You could do this, but its not pretty, and will probably be quite slow depending on how many elements you have on your page.
$('*').mouseenter(function(){ var currentCursor = $(this).css('cursor') ; //do what you want here, i.e. console.log( currentCursor ); });