开发者

how to find out whether a link is handled by a javascript or uses the href url

i'm trying to debug a link, but the opened url is a bit different from the o开发者_如何学Cne given in the href attribute. it seems like some javascript is used to handle the link after a click event.

unfortunately the js file is very huge and unreadable, so i can't find the place, that changes or handles my link.

is there any possibility to debug this with firebug or chrome developer tools?

thanks!

peter


This is involved process, depends how much is hidden. You can just use "inspect" button in firebug on the link. Once you click it it will show you the source code. It could reference the javascript directly or it could just have an id or class and the javascript has an event bound to this id class.

Look at the url to see if there is something like onclick="javascriptFunctionName()". If not - look for the js referencing class name or id of the element and subscribing to events.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜