문제

I have a div which is getting hidden/displayed by a click on another element. I can see the div's visibility CSS property changing in firebug. The div is initialized using Microsoft Javascript library in code using: Sys.Application.add_init(function() {$create.....

How do I get the actual Javascript which runs during run time with every click? Is there a way to intercept the js call and see what code is exactly running, like in Firebug or Chrome's Developer Tools?

(This is NOT a question on how to hide/unhide an element. I know how to do this)

도움이 되었습니까?

해결책

I know in Chrome Dev Tools what you can try to do is:

  1. Find the element clicking on which is causing your div to hide.
  2. Expand it's Event Listeners in the right bar
  3. Expand the click event
  4. Then click the source file displayed there for the click event.

It would take you to where the click event function, so you can put a break point there. This is what you're asking, right?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top