How to get Javascript function's source code from specific site using firebug?

ぐ巨炮叔叔 提交于 2019-12-18 11:00:13

问题


With firebug I found that clicking on the link calls javascript function

<a href="#" onclick="viewHide(this);return false;">

But I couldn't find it's implementation in page source.
Is it possible to get it?

The site is in hebrew, but I don't think it's problem :link text to trigger for this function click on any comments title that follow the article.

removed dead ImageShack link


回答1:


Just write in console:

viewHide.toString()

You will get a source code of function as a text.




回答2:


You can also put ViewHide under the Name column of the watch panel on the Script tab. When you press enter or click out after putting in the name, it should evaluate it and put the code in the Value column.




回答3:


Just write in console:

console.log(viewHide)

Then double-click the output will jump to the source file of the function definition.



来源:https://stackoverflow.com/questions/1368137/how-to-get-javascript-functions-source-code-from-specific-site-using-firebug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!