Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find js function with firebug

Tags:

I have the following button:

<input type="submit" id="btnLogin" onclick="return ValidateLogin();" value="Enter"> 

How can i find the definition of the ValidateLogin() function with firebug?

like image 800
hhh3112 Avatar asked Mar 29 '11 08:03

hhh3112


1 Answers

Type the following into the Firebug Console, then click the function() in the output window

var s = ValidateLogin.prototype.constructor; console.log(s); // will output the actual function definition  

I have included some screenshots to help.

enter image description here

enter image description here

like image 146
Chris Avatar answered Oct 11 '22 05:10

Chris