javascript - how to check whether a button is on hover -


is there javascript property check whether button on hover. need because when mouse hovered on button perform particular task.

i can see event onmouseover no property check whether mouse hovered or not.

can 1 please me out on how can proceed this.

try (jquery). it's messy idea:

http://jsfiddle.net/srsk3/1/

<input type="text" value="test"><input type="button" value="test">  <div id="div">-</div> 

with:

$(function(){     $('*')         .data('hovering', false)         .mouseover(function(){$(this).data('hovering', true)})         .mouseout(function(){$(this).data('hovering', false)});    });  window.setinterval(function() {     $('#div').html("textbox hovered: " +                    $('input[type="text"]').data('hovering')); }, 100) 

Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -