简体   繁体   中英

How to see what javascript events are binded to a HTML element?

I'm trying to see how this page handle its click events for the left side menu. http://sg.jobsdb.com/SG/jobs/accounting/1?JSSRC=HPJC

Using Firebug, I could see the click object but couldn't make any sense of how it displays the content on the right side.

Are there any ways I could see the source code the binds the event to the element without searching through all the scripts?

Thanks.

The chrome debugger has got what you're looking for

isAttribute: false
lineNumber: 348
listenerBody: "function (){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined;}"
node: HTMLTableCellElement
sourceName: "http://content.jobsdb.com.sg/Content/v50/Javascript/JobsDB.combined.min.js"
type: "click"
useCapture: false

I used to be all about firebug but the chrome debugger has definitely caught up in my opinion, and with the new improvements coming down the pipe I don't think I'm going back to firebug anytime soon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM