Calling JavaScript functions from firebug console
Firebug adds a global JavaScript variable named “console” to all web pages loaded in Firefox. This object contains many methods that allow you to write to the Firebug console to expose information that is flowing through your scripts. Now, let’s call a function.
Example
<!DOCTYPE html> <html lang="en"> <head> <title>logging</title> <script type="text/javascript"> function myFunc(firstString) { console.log(firstString + " another string"); }; </script> </head> <body> <p> any sample text </p> </body> </html>