简体   繁体   中英

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

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

Just write in console:

viewHide.toString()

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

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.

Just write in console:

console.log(viewHide)

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

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