Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 459
dani Avatar asked Sep 02 '09 14:09

dani


2 Answers

Just write in console:

viewHide.toString() 

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

like image 190
Eldar Djafarov Avatar answered Sep 20 '22 06:09

Eldar Djafarov


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.

like image 26
Kevin Heidt Avatar answered Sep 22 '22 06:09

Kevin Heidt