开发者

To get the details of action performed on HTML element by jQuery

开发者 https://www.devze.com 2023-03-16 22:25 出处:网络
I have a page with lot of HTML elements and want a script that captures the action and on which element it was performed.

I have a page with lot of HTML elements and want a script that captures the action and on which element it was performed.

  <script type="text/javascript">
  $(document).ready(function() {
   $('*').bind('click dblclick mousedown mouseenter mouseleave',
                detectEvent);

    function detectEvent(e) {
        alert(e.type);
    }
  });
  </script>

But even this script doesn't provid开发者_开发问答e the requirement.


Check out Visual Event. It will give you all the events currently attached on the page with loads of information about them

0

精彩评论

暂无评论...
验证码 换一张
取 消