dump method (window)
Prints the specified message to the console.
Sometimes the console window is not shown. In that case, close all running Firefox applications and open a new one from the command line with the -console parameter.The Error Console can also be used for message dumping. Use the reportError method or the nsIConsoleService object for that purpose. See the examples for details.
You can find the related objects in the Supported by objects section below.
|Required. String that specifies the text to print.|
This method has no return value.
Example HTML code 1:
This example illustrates the use of the dump method:
Example HTML code 2:
This example prints an error message to the Error Console:
Example HTML code 3:
This example prints a message to the Error Console:
User Contributed Comments