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?
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.


ValidateLogin no (), then right click on the function() in the output panel, and click Inspect in Script Tab. It will then show the .js file it is located inThere is a search field on the top right of Firebug. When you are on the Script panel and focus the search field, you'll get a small dialog which a check box "Multiple Files" (or something similar - I don't have the English version). Check it and copy the name of the Function you are looking for into it.