| 26 | | InspectorController.Console |
| | 26 | === Functions === |
| | 27 | |
| | 28 | {{{InspectorController.Console.evaluate(expression)}}}[[BR]] |
| | 29 | ''evaluates the expression in the global context of the inspected page'' |
| | 30 | |
| | 31 | {{{InspectorController.Console.messages()}}}[[BR]] |
| | 32 | ''requests an array of all recent messages up to the messageLimit'' |
| | 33 | |
| | 34 | {{{InspectorController.Console.clearMessages()}}}[[BR]] |
| | 35 | ''requests that all messages should be removed'' |
| | 36 | |
| | 37 | {{{InspectorController.Console.messageLimit()}}}[[BR]] |
| | 38 | ''requests the current message limit'' |
| | 39 | |
| | 40 | {{{InspectorController.Console.setMessageLimit(limit)}}}[[BR]] |
| | 41 | ''requests the current message limit'' |
| | 42 | |
| | 43 | === Responses === |
| | 44 | |
| | 45 | The evaluate, messages and messageLimit functions above will have responses that are sent to any message observers. (We need to define a message observer API.) |
| | 46 | |
| | 47 | ''Define what is contained in each of the responses for the above functions.'' |