Abrir a Consola da Web

Para abrir a 'Consola da Web':

  • either select "Web Console" from the Web Developer submenu in the Firefox Menu (or Tools menu if you display the menu bar or are on Mac OS X)
  • or press the CtrlShiftK (CommandOptionK on OS X) keyboard shortcut.

The Toolbox will appear at the bottom of the browser window, with the Web Console activated (it's just called "Console" in the DevTools toolbar):

A interface da 'Consola da Web' é dividida em três secções horizontais:

  • Toolbar: along the top is a toolbar containing two buttons. Click the garbage can button to clear the contents of the console. Click the funnel icon to filter the message that are displayed in the console
  • Command Line: the command line starts with double angle brackets (>>). Use it to enter JavaScript expressions
  • Message Display Pane: the messages generated by the code in the page and by the commands entered on the command line are displayed following each command